aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/sputnik_converted/15_Native/15.10_RegExp_Objects/15.10.6_Properties_of_the_RegExp_Prototype_Object/15.10.6.2_RegExp.prototype.exec/S15.10.6.2_A12.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/sputnik_converted/15_Native/15.10_RegExp_Objects/15.10.6_Properties_of_the_RegExp_Prototype_Object/15.10.6.2_RegExp.prototype.exec/S15.10.6.2_A12.js')
-rw-r--r--test/suite/sputnik_converted/15_Native/15.10_RegExp_Objects/15.10.6_Properties_of_the_RegExp_Prototype_Object/15.10.6.2_RegExp.prototype.exec/S15.10.6.2_A12.js36
1 files changed, 18 insertions, 18 deletions
diff --git a/test/suite/sputnik_converted/15_Native/15.10_RegExp_Objects/15.10.6_Properties_of_the_RegExp_Prototype_Object/15.10.6.2_RegExp.prototype.exec/S15.10.6.2_A12.js b/test/suite/sputnik_converted/15_Native/15.10_RegExp_Objects/15.10.6_Properties_of_the_RegExp_Prototype_Object/15.10.6.2_RegExp.prototype.exec/S15.10.6.2_A12.js
index 2b048803b..3bbf86065 100644
--- a/test/suite/sputnik_converted/15_Native/15.10_RegExp_Objects/15.10.6_Properties_of_the_RegExp_Prototype_Object/15.10.6.2_RegExp.prototype.exec/S15.10.6.2_A12.js
+++ b/test/suite/sputnik_converted/15_Native/15.10_RegExp_Objects/15.10.6_Properties_of_the_RegExp_Prototype_Object/15.10.6.2_RegExp.prototype.exec/S15.10.6.2_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.10.6.2_A12;
-* @section: 15.10.6.2;
-* @assertion: regExp exec() acts like regExp.exec('undefined') (step 2);
-* @description: Checking RegExp.prototype.exec.length;
-*/
-
+// Copyright 2011 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/**
+* @name: S15.10.6.2_A12;
+* @section: 15.10.6.2;
+* @assertion: regExp exec() acts like regExp.exec('undefined') (step 2);
+* @description: Checking RegExp.prototype.exec.length;
+*/
+
// Converted for Test262 from original Sputnik source
@@ -21,14 +21,14 @@ assertion: "regExp exec() acts like regExp.exec(\'undefined\') (step 2)",
description: "Checking RegExp.prototype.exec.length",
test: function testcase() {
- (/foo/).test('xfoox');
-var match = new RegExp('(.|\r|\n)*','').exec()[0];
-if (match === 'xfoox') {
- $FAIL('#1: regExp.exec() leaks match globally');
-}
-if (match !== 'undefined') {
- $FAIL('#2: regExp.exec() must coerce absent first arg to "undefined"');
-}
+ (/foo/).test('xfoox');
+var match = new RegExp('(.|\r|\n)*','').exec()[0];
+if (match === 'xfoox') {
+ $FAIL('#1: regExp.exec() leaks match globally');
+}
+if (match !== 'undefined') {
+ $FAIL('#2: regExp.exec() must coerce absent first arg to "undefined"');
+}
}
});