summaryrefslogtreecommitdiff
path: root/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T12.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T12.js')
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T12.js14
1 files changed, 5 insertions, 9 deletions
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T12.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T12.js
index 1fef458d1..f019f3ceb 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T12.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T12.js
@@ -11,19 +11,15 @@ description: >
/\.14/
---*/
-var __executed = /\.14/.exec({
- toString: function() {
- return Math.PI
- }
-});
+var __executed = /\.14/.exec({toString:function(){return Math.PI}});
var __expected = [".14"];
-__expected.index = 1;
-__expected.input = String(Math.PI);
+__expected.index=1;
+__expected.input=String(Math.PI);
//CHECK#0
if ((__executed instanceof Array) !== true) {
- $ERROR('#0: __executed = /\\.14/.exec({toString:function(){return Math.PI}}); (__executed instanceof Array) === true');
+ $ERROR('#0: __executed = /\\.14/.exec({toString:function(){return Math.PI}}); (__executed instanceof Array) === true');
}
//CHECK#1
@@ -42,7 +38,7 @@ if (__executed.input !== __expected.input) {
}
//CHECK#4
-for (var index = 0; index < __expected.length; index++) {
+for(var index=0; index<__expected.length; index++) {
if (__executed[index] !== __expected[index]) {
$ERROR('#4: __executed = /\\.14/.exec({toString:function(){return Math.PI}}); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}