diff options
Diffstat (limited to 'test/suite/sputnik_converted/15_Native/15.5_String_Objects/15.5.4_Properties_of_the_String_Prototype_Object/15.5.4.11_String.prototype.replace/S15.5.4.11_A12.js')
-rw-r--r-- | test/suite/sputnik_converted/15_Native/15.5_String_Objects/15.5.4_Properties_of_the_String_Prototype_Object/15.5.4.11_String.prototype.replace/S15.5.4.11_A12.js | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/test/suite/sputnik_converted/15_Native/15.5_String_Objects/15.5.4_Properties_of_the_String_Prototype_Object/15.5.4.11_String.prototype.replace/S15.5.4.11_A12.js b/test/suite/sputnik_converted/15_Native/15.5_String_Objects/15.5.4_Properties_of_the_String_Prototype_Object/15.5.4.11_String.prototype.replace/S15.5.4.11_A12.js index 610c183f5..f7a83674e 100644 --- a/test/suite/sputnik_converted/15_Native/15.5_String_Objects/15.5.4_Properties_of_the_String_Prototype_Object/15.5.4.11_String.prototype.replace/S15.5.4.11_A12.js +++ b/test/suite/sputnik_converted/15_Native/15.5_String_Objects/15.5.4_Properties_of_the_String_Prototype_Object/15.5.4.11_String.prototype.replace/S15.5.4.11_A12.js @@ -1,13 +1,13 @@ -// Copyright 2011 the Sputnik authors. All rights reserved.
-// This code is governed by the BSD license found in the LICENSE file.
-
-/**
-* @name: S15.5.4.11_A12;
-* @section: 15.5.4.11;
-* @assertion: Call replaceValue passing undefined as the this value;
-* @description: replaceValue tests that its this value is undefined;
-*/
-
+// Copyright 2011 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** +* @name: S15.5.4.11_A12; +* @section: 15.5.4.11; +* @assertion: Call replaceValue passing undefined as the this value; +* @description: replaceValue tests that its this value is undefined; +*/ + // Converted for Test262 from original Sputnik source
@@ -21,19 +21,19 @@ assertion: "Call replaceValue passing undefined as the this value", description: "replaceValue tests that its this value is undefined",
test: function testcase() {
- var global = this;
-'x'.replace(/x/, function() {
- "use strict";
-
- if (this === global) {
- $FAIL('#1: String replace leaks global');
- }
- if (this !== undefined) {
- $FAIL('#2: replaceValue should be called with this===undefined. ' +
- 'Actual: ' + this);
- }
- return 'y';
-});
+ var global = this; +'x'.replace(/x/, function() { + "use strict"; + + if (this === global) { + $FAIL('#1: String replace leaks global'); + } + if (this !== undefined) { + $FAIL('#2: replaceValue should be called with this===undefined. ' + + 'Actual: ' + this); + } + return 'y'; +}); }
});
|