aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRick Waldron <waldron.rick@gmail.com>2018-02-15 15:25:45 -0500
committerLeo Balter <leonardo.balter@gmail.com>2018-02-15 15:25:45 -0500
commit7c66f39f41df3656daec10bcd3c8a03b61d4d7a6 (patch)
treedf76ec7c574970cb4930664f7973c25c2a2af0b6 /test
parentff4f13099c20d4139a8c3a12a8551e5398e79904 (diff)
built-ins/JSON/*: make all indentation consistent (depth & character) (#1440)
Diffstat (limited to 'test')
-rw-r--r--test/built-ins/JSON/15.12-0-1.js2
-rw-r--r--test/built-ins/JSON/15.12-0-2.js4
-rw-r--r--test/built-ins/JSON/15.12-0-3.js4
-rw-r--r--test/built-ins/JSON/15.12-0-4.js12
-rw-r--r--test/built-ins/JSON/parse/15.12.1.1-0-1.js2
-rw-r--r--test/built-ins/JSON/parse/15.12.1.1-0-2.js2
-rw-r--r--test/built-ins/JSON/parse/15.12.1.1-0-3.js2
-rw-r--r--test/built-ins/JSON/parse/15.12.1.1-0-4.js2
-rw-r--r--test/built-ins/JSON/parse/15.12.1.1-0-5.js2
-rw-r--r--test/built-ins/JSON/parse/15.12.1.1-0-6.js2
-rw-r--r--test/built-ins/JSON/parse/15.12.1.1-0-8.js2
-rw-r--r--test/built-ins/JSON/parse/15.12.1.1-0-9.js10
-rw-r--r--test/built-ins/JSON/parse/15.12.2-0-1.js2
-rw-r--r--test/built-ins/JSON/parse/15.12.2-0-2.js2
-rw-r--r--test/built-ins/JSON/parse/15.12.2-0-3.js4
-rw-r--r--test/built-ins/JSON/parse/15.12.2-2-1.js76
-rw-r--r--test/built-ins/JSON/parse/15.12.2-2-10.js76
-rw-r--r--test/built-ins/JSON/parse/15.12.2-2-2.js76
-rw-r--r--test/built-ins/JSON/parse/15.12.2-2-3.js76
-rw-r--r--test/built-ins/JSON/parse/15.12.2-2-4.js76
-rw-r--r--test/built-ins/JSON/parse/15.12.2-2-5.js76
-rw-r--r--test/built-ins/JSON/parse/15.12.2-2-6.js76
-rw-r--r--test/built-ins/JSON/parse/15.12.2-2-7.js76
-rw-r--r--test/built-ins/JSON/parse/15.12.2-2-8.js76
-rw-r--r--test/built-ins/JSON/parse/15.12.2-2-9.js76
-rw-r--r--test/built-ins/JSON/parse/revived-proxy.js5
-rw-r--r--test/built-ins/JSON/parse/reviver-object-define-prop-err.js4
-rw-r--r--test/built-ins/JSON/parse/reviver-object-delete-err.js4
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-0-1.js2
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-0-2.js2
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-0-3.js4
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-11-10.js4
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-11-11.js6
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-11-12.js4
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-11-13.js6
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-11-15.js4
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-11-16.js78
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-11-17.js78
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-11-18.js78
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-11-19.js78
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-11-2.js4
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-11-20.js78
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-11-21.js78
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-11-22.js78
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-11-23.js78
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-11-24.js78
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-11-25.js78
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-11-26.js10
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-4-1.js2
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-5-a-i-1.js13
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-5-b-i-1.js13
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-6-a-1.js13
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-6-a-2.js13
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-6-b-1.js13
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-6-b-2.js13
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-6-b-3.js15
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-6-b-4.js17
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-7-a-1.js13
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-8-a-1.js13
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-8-a-2.js13
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-8-a-3.js13
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-8-a-4.js13
-rw-r--r--test/built-ins/JSON/stringify/15.12.3-8-a-5.js13
-rw-r--r--test/built-ins/JSON/stringify/15.12.3_2-2-b-i-1.js10
-rw-r--r--test/built-ins/JSON/stringify/15.12.3_2-2-b-i-2.js10
-rw-r--r--test/built-ins/JSON/stringify/15.12.3_2-2-b-i-3.js10
-rw-r--r--test/built-ins/JSON/stringify/15.12.3_2-3-a-1.js4
-rw-r--r--test/built-ins/JSON/stringify/15.12.3_2-3-a-2.js4
-rw-r--r--test/built-ins/JSON/stringify/15.12.3_2-3-a-3.js4
-rw-r--r--test/built-ins/JSON/stringify/15.12.3_4-1-1.js6
-rw-r--r--test/built-ins/JSON/stringify/15.12.3_4-1-2.js6
-rw-r--r--test/built-ins/JSON/stringify/15.12.3_4-1-3.js10
72 files changed, 1046 insertions, 861 deletions
diff --git a/test/built-ins/JSON/15.12-0-1.js b/test/built-ins/JSON/15.12-0-1.js
index 7dcb5975b..1d0776cc7 100644
--- a/test/built-ins/JSON/15.12-0-1.js
+++ b/test/built-ins/JSON/15.12-0-1.js
@@ -10,6 +10,6 @@ es5id: 15.12-0-1
description: JSON must be a built-in object
---*/
- var o = JSON;
+var o = JSON;
assert.sameValue(typeof(o), "object", 'typeof(o)');
diff --git a/test/built-ins/JSON/15.12-0-2.js b/test/built-ins/JSON/15.12-0-2.js
index 924b54991..5c086b533 100644
--- a/test/built-ins/JSON/15.12-0-2.js
+++ b/test/built-ins/JSON/15.12-0-2.js
@@ -10,7 +10,7 @@ es5id: 15.12-0-2
description: JSON must not support the [[Construct]] method
---*/
- var o = JSON;
+var o = JSON;
assert.throws(TypeError, function() {
- var j = new JSON();
+ var j = new JSON();
});
diff --git a/test/built-ins/JSON/15.12-0-3.js b/test/built-ins/JSON/15.12-0-3.js
index 4a511110a..4e082c49f 100644
--- a/test/built-ins/JSON/15.12-0-3.js
+++ b/test/built-ins/JSON/15.12-0-3.js
@@ -10,7 +10,7 @@ es5id: 15.12-0-3
description: JSON must not support the [[Call]] method
---*/
- var o = JSON;
+var o = JSON;
assert.throws(TypeError, function() {
- var j = JSON();
+ var j = JSON();
});
diff --git a/test/built-ins/JSON/15.12-0-4.js b/test/built-ins/JSON/15.12-0-4.js
index 565dcc95b..804c33687 100644
--- a/test/built-ins/JSON/15.12-0-4.js
+++ b/test/built-ins/JSON/15.12-0-4.js
@@ -12,11 +12,11 @@ es5id: 15.12-0-4
description: JSON object's properties must be non enumerable
---*/
- var o = JSON;
- var i = 0;
- for (var p in o) {
- i++;
- }
-
+var o = JSON;
+var i = 0;
+for (var p in o) {
+ i++;
+}
+
assert.sameValue(i, 0, 'i');
diff --git a/test/built-ins/JSON/parse/15.12.1.1-0-1.js b/test/built-ins/JSON/parse/15.12.1.1-0-1.js
index d1bb9eecd..6134ce18f 100644
--- a/test/built-ins/JSON/parse/15.12.1.1-0-1.js
+++ b/test/built-ins/JSON/parse/15.12.1.1-0-1.js
@@ -7,5 +7,5 @@ description: The JSON lexical grammar treats whitespace as a token seperator
---*/
assert.throws(SyntaxError, function() {
- JSON.parse('12\t\r\n 34'); // should produce a syntax error as whitespace results in two tokens
+ JSON.parse('12\t\r\n 34'); // should produce a syntax error as whitespace results in two tokens
});
diff --git a/test/built-ins/JSON/parse/15.12.1.1-0-2.js b/test/built-ins/JSON/parse/15.12.1.1-0-2.js
index 8254a4d62..e2e3f87e1 100644
--- a/test/built-ins/JSON/parse/15.12.1.1-0-2.js
+++ b/test/built-ins/JSON/parse/15.12.1.1-0-2.js
@@ -9,5 +9,5 @@ description: >
---*/
assert.throws(SyntaxError, function() {
- JSON.parse('\u000b1234'); // should produce a syntax error
+ JSON.parse('\u000b1234'); // should produce a syntax error
});
diff --git a/test/built-ins/JSON/parse/15.12.1.1-0-3.js b/test/built-ins/JSON/parse/15.12.1.1-0-3.js
index fb213cb00..32fe77231 100644
--- a/test/built-ins/JSON/parse/15.12.1.1-0-3.js
+++ b/test/built-ins/JSON/parse/15.12.1.1-0-3.js
@@ -9,5 +9,5 @@ description: >
---*/
assert.throws(SyntaxError, function() {
- JSON.parse('\u000c1234'); // should produce a syntax error
+ JSON.parse('\u000c1234'); // should produce a syntax error
});
diff --git a/test/built-ins/JSON/parse/15.12.1.1-0-4.js b/test/built-ins/JSON/parse/15.12.1.1-0-4.js
index 34b31816c..879335aa1 100644
--- a/test/built-ins/JSON/parse/15.12.1.1-0-4.js
+++ b/test/built-ins/JSON/parse/15.12.1.1-0-4.js
@@ -9,5 +9,5 @@ description: >
---*/
assert.throws(SyntaxError, function() {
- JSON.parse('\u00a01234'); // should produce a syntax error
+ JSON.parse('\u00a01234'); // should produce a syntax error
});
diff --git a/test/built-ins/JSON/parse/15.12.1.1-0-5.js b/test/built-ins/JSON/parse/15.12.1.1-0-5.js
index e18222fd2..59aff18b6 100644
--- a/test/built-ins/JSON/parse/15.12.1.1-0-5.js
+++ b/test/built-ins/JSON/parse/15.12.1.1-0-5.js
@@ -9,5 +9,5 @@ description: >
---*/
assert.throws(SyntaxError, function() {
- JSON.parse('\u200b1234'); // should produce a syntax error
+ JSON.parse('\u200b1234'); // should produce a syntax error
});
diff --git a/test/built-ins/JSON/parse/15.12.1.1-0-6.js b/test/built-ins/JSON/parse/15.12.1.1-0-6.js
index cfaf7d050..ff2889373 100644
--- a/test/built-ins/JSON/parse/15.12.1.1-0-6.js
+++ b/test/built-ins/JSON/parse/15.12.1.1-0-6.js
@@ -9,5 +9,5 @@ description: >
---*/
assert.throws(SyntaxError, function() {
- JSON.parse('\ufeff1234'); // should produce a syntax error a
+ JSON.parse('\ufeff1234'); // should produce a syntax error a
});
diff --git a/test/built-ins/JSON/parse/15.12.1.1-0-8.js b/test/built-ins/JSON/parse/15.12.1.1-0-8.js
index fa7bb87b3..d342003b9 100644
--- a/test/built-ins/JSON/parse/15.12.1.1-0-8.js
+++ b/test/built-ins/JSON/parse/15.12.1.1-0-8.js
@@ -9,5 +9,5 @@ description: >
---*/
assert.throws(SyntaxError, function() {
- JSON.parse('\u2028\u20291234'); // should produce a syntax error
+ JSON.parse('\u2028\u20291234'); // should produce a syntax error
});
diff --git a/test/built-ins/JSON/parse/15.12.1.1-0-9.js b/test/built-ins/JSON/parse/15.12.1.1-0-9.js
index e669bb290..5deb8a581 100644
--- a/test/built-ins/JSON/parse/15.12.1.1-0-9.js
+++ b/test/built-ins/JSON/parse/15.12.1.1-0-9.js
@@ -6,8 +6,8 @@ es5id: 15.12.1.1-0-9
description: Whitespace characters can appear before/after any JSONtoken
---*/
- JSON.parse('\t\r \n{\t\r \n'+
- '"property"\t\r \n:\t\r \n{\t\r \n}\t\r \n,\t\r \n' +
- '"prop2"\t\r \n:\t\r \n'+
- '[\t\r \ntrue\t\r \n,\t\r \nnull\t\r \n,123.456\t\r \n]'+
- '\t\r \n}\t\r \n'); // should JOSN parse without error
+JSON.parse('\t\r \n{\t\r \n' +
+ '"property"\t\r \n:\t\r \n{\t\r \n}\t\r \n,\t\r \n' +
+ '"prop2"\t\r \n:\t\r \n' +
+ '[\t\r \ntrue\t\r \n,\t\r \nnull\t\r \n,123.456\t\r \n]' +
+ '\t\r \n}\t\r \n'); // should JOSN parse without error
diff --git a/test/built-ins/JSON/parse/15.12.2-0-1.js b/test/built-ins/JSON/parse/15.12.2-0-1.js
index 7d3cc1d3e..2bb777949 100644
--- a/test/built-ins/JSON/parse/15.12.2-0-1.js
+++ b/test/built-ins/JSON/parse/15.12.2-0-1.js
@@ -17,6 +17,6 @@ es5id: 15.12.2-0-1
description: JSON.parse must exist as a function
---*/
- var f = JSON.parse;
+var f = JSON.parse;
assert.sameValue(typeof(f), "function", 'typeof(f)');
diff --git a/test/built-ins/JSON/parse/15.12.2-0-2.js b/test/built-ins/JSON/parse/15.12.2-0-2.js
index 40ebfdb2f..fe9569381 100644
--- a/test/built-ins/JSON/parse/15.12.2-0-2.js
+++ b/test/built-ins/JSON/parse/15.12.2-0-2.js
@@ -17,7 +17,7 @@ es5id: 15.12.2-0-2
description: JSON.parse must exist as a function taking 2 parameters
---*/
- var f = JSON.parse;
+var f = JSON.parse;
assert.sameValue(typeof(f), "function", 'typeof(f)');
assert.sameValue(f.length, 2, 'f.length');
diff --git a/test/built-ins/JSON/parse/15.12.2-0-3.js b/test/built-ins/JSON/parse/15.12.2-0-3.js
index 068cf69fc..de7d3f825 100644
--- a/test/built-ins/JSON/parse/15.12.2-0-3.js
+++ b/test/built-ins/JSON/parse/15.12.2-0-3.js
@@ -10,7 +10,7 @@ es5id: 15.12.2-0-3
description: JSON.parse must be deletable (configurable)
---*/
- var o = JSON;
- var desc = Object.getOwnPropertyDescriptor(o, "parse");
+var o = JSON;
+var desc = Object.getOwnPropertyDescriptor(o, "parse");
assert.sameValue(desc.configurable, true, 'desc.configurable');
diff --git a/test/built-ins/JSON/parse/15.12.2-2-1.js b/test/built-ins/JSON/parse/15.12.2-2-1.js
index a2a42946f..d307ad6d0 100644
--- a/test/built-ins/JSON/parse/15.12.2-2-1.js
+++ b/test/built-ins/JSON/parse/15.12.2-2-1.js
@@ -8,42 +8,42 @@ description: >
character
---*/
- var nullChars = new Array();
- nullChars[0] = '\"\u0000\"';
- nullChars[1] = '\"\u0001\"';
- nullChars[2] = '\"\u0002\"';
- nullChars[3] = '\"\u0003\"';
- nullChars[4] = '\"\u0004\"';
- nullChars[5] = '\"\u0005\"';
- nullChars[6] = '\"\u0006\"';
- nullChars[7] = '\"\u0007\"';
- nullChars[8] = '\"\u0008\"';
- nullChars[9] = '\"\u0009\"';
- nullChars[10] = '\"\u000A\"';
- nullChars[11] = '\"\u000B\"';
- nullChars[12] = '\"\u000C\"';
- nullChars[13] = '\"\u000D\"';
- nullChars[14] = '\"\u000E\"';
- nullChars[15] = '\"\u000F\"';
- nullChars[16] = '\"\u0010\"';
- nullChars[17] = '\"\u0011\"';
- nullChars[18] = '\"\u0012\"';
- nullChars[19] = '\"\u0013\"';
- nullChars[20] = '\"\u0014\"';
- nullChars[21] = '\"\u0015\"';
- nullChars[22] = '\"\u0016\"';
- nullChars[23] = '\"\u0017\"';
- nullChars[24] = '\"\u0018\"';
- nullChars[25] = '\"\u0019\"';
- nullChars[26] = '\"\u001A\"';
- nullChars[27] = '\"\u001B\"';
- nullChars[28] = '\"\u001C\"';
- nullChars[29] = '\"\u001D\"';
- nullChars[30] = '\"\u001E\"';
- nullChars[31] = '\"\u001F\"';
+var nullChars = new Array();
+nullChars[0] = '\"\u0000\"';
+nullChars[1] = '\"\u0001\"';
+nullChars[2] = '\"\u0002\"';
+nullChars[3] = '\"\u0003\"';
+nullChars[4] = '\"\u0004\"';
+nullChars[5] = '\"\u0005\"';
+nullChars[6] = '\"\u0006\"';
+nullChars[7] = '\"\u0007\"';
+nullChars[8] = '\"\u0008\"';
+nullChars[9] = '\"\u0009\"';
+nullChars[10] = '\"\u000A\"';
+nullChars[11] = '\"\u000B\"';
+nullChars[12] = '\"\u000C\"';
+nullChars[13] = '\"\u000D\"';
+nullChars[14] = '\"\u000E\"';
+nullChars[15] = '\"\u000F\"';
+nullChars[16] = '\"\u0010\"';
+nullChars[17] = '\"\u0011\"';
+nullChars[18] = '\"\u0012\"';
+nullChars[19] = '\"\u0013\"';
+nullChars[20] = '\"\u0014\"';
+nullChars[21] = '\"\u0015\"';
+nullChars[22] = '\"\u0016\"';
+nullChars[23] = '\"\u0017\"';
+nullChars[24] = '\"\u0018\"';
+nullChars[25] = '\"\u0019\"';
+nullChars[26] = '\"\u001A\"';
+nullChars[27] = '\"\u001B\"';
+nullChars[28] = '\"\u001C\"';
+nullChars[29] = '\"\u001D\"';
+nullChars[30] = '\"\u001E\"';
+nullChars[31] = '\"\u001F\"';
- for (var index in nullChars) {
- assert.throws(SyntaxError, function() {
- var obj = JSON.parse('{ ' + nullChars[index] + ' : "John" } ');
- });
- }
+for (var index in nullChars) {
+ assert.throws(SyntaxError, function() {
+ var obj = JSON.parse('{ ' + nullChars[index] + ' : "John" } ');
+ });
+}
diff --git a/test/built-ins/JSON/parse/15.12.2-2-10.js b/test/built-ins/JSON/parse/15.12.2-2-10.js
index 0f3c73ac1..24f298c88 100644
--- a/test/built-ins/JSON/parse/15.12.2-2-10.js
+++ b/test/built-ins/JSON/parse/15.12.2-2-10.js
@@ -8,42 +8,42 @@ description: >
null character
---*/
- var nullChars = new Array();
- nullChars[0] = '\"\u0000\"';
- nullChars[1] = '\"\u0001\"';
- nullChars[2] = '\"\u0002\"';
- nullChars[3] = '\"\u0003\"';
- nullChars[4] = '\"\u0004\"';
- nullChars[5] = '\"\u0005\"';
- nullChars[6] = '\"\u0006\"';
- nullChars[7] = '\"\u0007\"';
- nullChars[8] = '\"\u0008\"';
- nullChars[9] = '\"\u0009\"';
- nullChars[10] = '\"\u000A\"';
- nullChars[11] = '\"\u000B\"';
- nullChars[12] = '\"\u000C\"';
- nullChars[13] = '\"\u000D\"';
- nullChars[14] = '\"\u000E\"';
- nullChars[15] = '\"\u000F\"';
- nullChars[16] = '\"\u0010\"';
- nullChars[17] = '\"\u0011\"';
- nullChars[18] = '\"\u0012\"';
- nullChars[19] = '\"\u0013\"';
- nullChars[20] = '\"\u0014\"';
- nullChars[21] = '\"\u0015\"';
- nullChars[22] = '\"\u0016\"';
- nullChars[23] = '\"\u0017\"';
- nullChars[24] = '\"\u0018\"';
- nullChars[25] = '\"\u0019\"';
- nullChars[26] = '\"\u001A\"';
- nullChars[27] = '\"\u001B\"';
- nullChars[28] = '\"\u001C\"';
- nullChars[29] = '\"\u001D\"';
- nullChars[30] = '\"\u001E\"';
- nullChars[31] = '\"\u001F\"';
+var nullChars = new Array();
+nullChars[0] = '\"\u0000\"';
+nullChars[1] = '\"\u0001\"';
+nullChars[2] = '\"\u0002\"';
+nullChars[3] = '\"\u0003\"';
+nullChars[4] = '\"\u0004\"';
+nullChars[5] = '\"\u0005\"';
+nullChars[6] = '\"\u0006\"';
+nullChars[7] = '\"\u0007\"';
+nullChars[8] = '\"\u0008\"';
+nullChars[9] = '\"\u0009\"';
+nullChars[10] = '\"\u000A\"';
+nullChars[11] = '\"\u000B\"';
+nullChars[12] = '\"\u000C\"';
+nullChars[13] = '\"\u000D\"';
+nullChars[14] = '\"\u000E\"';
+nullChars[15] = '\"\u000F\"';
+nullChars[16] = '\"\u0010\"';
+nullChars[17] = '\"\u0011\"';
+nullChars[18] = '\"\u0012\"';
+nullChars[19] = '\"\u0013\"';
+nullChars[20] = '\"\u0014\"';
+nullChars[21] = '\"\u0015\"';
+nullChars[22] = '\"\u0016\"';
+nullChars[23] = '\"\u0017\"';
+nullChars[24] = '\"\u0018\"';
+nullChars[25] = '\"\u0019\"';
+nullChars[26] = '\"\u001A\"';
+nullChars[27] = '\"\u001B\"';
+nullChars[28] = '\"\u001C\"';
+nullChars[29] = '\"\u001D\"';
+nullChars[30] = '\"\u001E\"';
+nullChars[31] = '\"\u001F\"';
- for (var index in nullChars) {
- assert.throws(SyntaxError, function() {
- var obj = JSON.parse('{ "name" : ' + "Jo" + nullChars[index] + "hn" + ' } ');
- });
- }
+for (var index in nullChars) {
+ assert.throws(SyntaxError, function() {
+ var obj = JSON.parse('{ "name" : ' + "Jo" + nullChars[index] + "hn" + ' } ');
+ });
+}
diff --git a/test/built-ins/JSON/parse/15.12.2-2-2.js b/test/built-ins/JSON/parse/15.12.2-2-2.js
index d577d5b76..6af5601ae 100644
--- a/test/built-ins/JSON/parse/15.12.2-2-2.js
+++ b/test/built-ins/JSON/parse/15.12.2-2-2.js
@@ -8,42 +8,42 @@ description: >
null character
---*/
- var nullChars = new Array();
- nullChars[0] = '\"\u0000\"';
- nullChars[1] = '\"\u0001\"';
- nullChars[2] = '\"\u0002\"';
- nullChars[3] = '\"\u0003\"';
- nullChars[4] = '\"\u0004\"';
- nullChars[5] = '\"\u0005\"';
- nullChars[6] = '\"\u0006\"';
- nullChars[7] = '\"\u0007\"';
- nullChars[8] = '\"\u0008\"';
- nullChars[9] = '\"\u0009\"';
- nullChars[10] = '\"\u000A\"';
- nullChars[11] = '\"\u000B\"';
- nullChars[12] = '\"\u000C\"';
- nullChars[13] = '\"\u000D\"';
- nullChars[14] = '\"\u000E\"';
- nullChars[15] = '\"\u000F\"';
- nullChars[16] = '\"\u0010\"';
- nullChars[17] = '\"\u0011\"';
- nullChars[18] = '\"\u0012\"';
- nullChars[19] = '\"\u0013\"';
- nullChars[20] = '\"\u0014\"';
- nullChars[21] = '\"\u0015\"';
- nullChars[22] = '\"\u0016\"';
- nullChars[23] = '\"\u0017\"';
- nullChars[24] = '\"\u0018\"';
- nullChars[25] = '\"\u0019\"';
- nullChars[26] = '\"\u001A\"';
- nullChars[27] = '\"\u001B\"';
- nullChars[28] = '\"\u001C\"';
- nullChars[29] = '\"\u001D\"';
- nullChars[30] = '\"\u001E\"';
- nullChars[31] = '\"\u001F\"';
+var nullChars = new Array();
+nullChars[0] = '\"\u0000\"';
+nullChars[1] = '\"\u0001\"';
+nullChars[2] = '\"\u0002\"';
+nullChars[3] = '\"\u0003\"';
+nullChars[4] = '\"\u0004\"';
+nullChars[5] = '\"\u0005\"';
+nullChars[6] = '\"\u0006\"';
+nullChars[7] = '\"\u0007\"';
+nullChars[8] = '\"\u0008\"';
+nullChars[9] = '\"\u0009\"';
+nullChars[10] = '\"\u000A\"';
+nullChars[11] = '\"\u000B\"';
+nullChars[12] = '\"\u000C\"';
+nullChars[13] = '\"\u000D\"';
+nullChars[14] = '\"\u000E\"';
+nullChars[15] = '\"\u000F\"';
+nullChars[16] = '\"\u0010\"';
+nullChars[17] = '\"\u0011\"';
+nullChars[18] = '\"\u0012\"';
+nullChars[19] = '\"\u0013\"';
+nullChars[20] = '\"\u0014\"';
+nullChars[21] = '\"\u0015\"';
+nullChars[22] = '\"\u0016\"';
+nullChars[23] = '\"\u0017\"';
+nullChars[24] = '\"\u0018\"';
+nullChars[25] = '\"\u0019\"';
+nullChars[26] = '\"\u001A\"';
+nullChars[27] = '\"\u001B\"';
+nullChars[28] = '\"\u001C\"';
+nullChars[29] = '\"\u001D\"';
+nullChars[30] = '\"\u001E\"';
+nullChars[31] = '\"\u001F\"';
- for (var index in nullChars) {
- assert.throws(SyntaxError, function() {
- var obj = JSON.parse('{ ' + nullChars[index] + "name" + ' : "John" } ');
- });
- }
+for (var index in nullChars) {
+ assert.throws(SyntaxError, function() {
+ var obj = JSON.parse('{ ' + nullChars[index] + "name" + ' : "John" } ');
+ });
+}
diff --git a/test/built-ins/JSON/parse/15.12.2-2-3.js b/test/built-ins/JSON/parse/15.12.2-2-3.js
index 20f19e1b2..0bd6dc9e9 100644
--- a/test/built-ins/JSON/parse/15.12.2-2-3.js
+++ b/test/built-ins/JSON/parse/15.12.2-2-3.js
@@ -8,42 +8,42 @@ description: >
null character
---*/
- var nullChars = new Array();
- nullChars[0] = '\"\u0000\"';
- nullChars[1] = '\"\u0001\"';
- nullChars[2] = '\"\u0002\"';
- nullChars[3] = '\"\u0003\"';
- nullChars[4] = '\"\u0004\"';
- nullChars[5] = '\"\u0005\"';
- nullChars[6] = '\"\u0006\"';
- nullChars[7] = '\"\u0007\"';
- nullChars[8] = '\"\u0008\"';
- nullChars[9] = '\"\u0009\"';
- nullChars[10] = '\"\u000A\"';
- nullChars[11] = '\"\u000B\"';
- nullChars[12] = '\"\u000C\"';
- nullChars[13] = '\"\u000D\"';
- nullChars[14] = '\"\u000E\"';
- nullChars[15] = '\"\u000F\"';
- nullChars[16] = '\"\u0010\"';
- nullChars[17] = '\"\u0011\"';
- nullChars[18] = '\"\u0012\"';
- nullChars[19] = '\"\u0013\"';
- nullChars[20] = '\"\u0014\"';
- nullChars[21] = '\"\u0015\"';
- nullChars[22] = '\"\u0016\"';
- nullChars[23] = '\"\u0017\"';
- nullChars[24] = '\"\u0018\"';
- nullChars[25] = '\"\u0019\"';
- nullChars[26] = '\"\u001A\"';
- nullChars[27] = '\"\u001B\"';
- nullChars[28] = '\"\u001C\"';
- nullChars[29] = '\"\u001D\"';
- nullChars[30] = '\"\u001E\"';
- nullChars[31] = '\"\u001F\"';
+var nullChars = new Array();
+nullChars[0] = '\"\u0000\"';
+nullChars[1] = '\"\u0001\"';
+nullChars[2] = '\"\u0002\"';
+nullChars[3] = '\"\u0003\"';
+nullChars[4] = '\"\u0004\"';
+nullChars[5] = '\"\u0005\"';
+nullChars[6] = '\"\u0006\"';
+nullChars[7] = '\"\u0007\"';
+nullChars[8] = '\"\u0008\"';
+nullChars[9] = '\"\u0009\"';
+nullChars[10] = '\"\u000A\"';
+nullChars[11] = '\"\u000B\"';
+nullChars[12] = '\"\u000C\"';
+nullChars[13] = '\"\u000D\"';
+nullChars[14] = '\"\u000E\"';
+nullChars[15] = '\"\u000F\"';
+nullChars[16] = '\"\u0010\"';
+nullChars[17] = '\"\u0011\"';
+nullChars[18] = '\"\u0012\"';
+nullChars[19] = '\"\u0013\"';
+nullChars[20] = '\"\u0014\"';
+nullChars[21] = '\"\u0015\"';
+nullChars[22] = '\"\u0016\"';
+nullChars[23] = '\"\u0017\"';
+nullChars[24] = '\"\u0018\"';
+nullChars[25] = '\"\u0019\"';
+nullChars[26] = '\"\u001A\"';
+nullChars[27] = '\"\u001B\"';
+nullChars[28] = '\"\u001C\"';
+nullChars[29] = '\"\u001D\"';
+nullChars[30] = '\"\u001E\"';
+nullChars[31] = '\"\u001F\"';
- for (var index in nullChars) {
- assert.throws(SyntaxError, function() {
- var obj = JSON.parse('{' + "name" + nullChars[index] + ' : "John" } ');
- });
- }
+for (var index in nullChars) {
+ assert.throws(SyntaxError, function() {
+ var obj = JSON.parse('{' + "name" + nullChars[index] + ' : "John" } ');
+ });
+}
diff --git a/test/built-ins/JSON/parse/15.12.2-2-4.js b/test/built-ins/JSON/parse/15.12.2-2-4.js
index 755f4578f..819f7160f 100644
--- a/test/built-ins/JSON/parse/15.12.2-2-4.js
+++ b/test/built-ins/JSON/parse/15.12.2-2-4.js
@@ -8,42 +8,42 @@ description: >
with a null character
---*/
- var nullChars = new Array();
- nullChars[0] = '\"\u0000\"';
- nullChars[1] = '\"\u0001\"';
- nullChars[2] = '\"\u0002\"';
- nullChars[3] = '\"\u0003\"';
- nullChars[4] = '\"\u0004\"';
- nullChars[5] = '\"\u0005\"';
- nullChars[6] = '\"\u0006\"';
- nullChars[7] = '\"\u0007\"';
- nullChars[8] = '\"\u0008\"';
- nullChars[9] = '\"\u0009\"';
- nullChars[10] = '\"\u000A\"';
- nullChars[11] = '\"\u000B\"';
- nullChars[12] = '\"\u000C\"';
- nullChars[13] = '\"\u000D\"';
- nullChars[14] = '\"\u000E\"';
- nullChars[15] = '\"\u000F\"';
- nullChars[16] = '\"\u0010\"';
- nullChars[17] = '\"\u0011\"';
- nullChars[18] = '\"\u0012\"';
- nullChars[19] = '\"\u0013\"';
- nullChars[20] = '\"\u0014\"';
- nullChars[21] = '\"\u0015\"';
- nullChars[22] = '\"\u0016\"';
- nullChars[23] = '\"\u0017\"';
- nullChars[24] = '\"\u0018\"';
- nullChars[25] = '\"\u0019\"';
- nullChars[26] = '\"\u001A\"';
- nullChars[27] = '\"\u001B\"';
- nullChars[28] = '\"\u001C\"';
- nullChars[29] = '\"\u001D\"';
- nullChars[30] = '\"\u001E\"';
- nullChars[31] = '\"\u001F\"';
+var nullChars = new Array();
+nullChars[0] = '\"\u0000\"';
+nullChars[1] = '\"\u0001\"';
+nullChars[2] = '\"\u0002\"';
+nullChars[3] = '\"\u0003\"';
+nullChars[4] = '\"\u0004\"';
+nullChars[5] = '\"\u0005\"';
+nullChars[6] = '\"\u0006\"';
+nullChars[7] = '\"\u0007\"';
+nullChars[8] = '\"\u0008\"';
+nullChars[9] = '\"\u0009\"';
+nullChars[10] = '\"\u000A\"';
+nullChars[11] = '\"\u000B\"';
+nullChars[12] = '\"\u000C\"';
+nullChars[13] = '\"\u000D\"';
+nullChars[14] = '\"\u000E\"';
+nullChars[15] = '\"\u000F\"';
+nullChars[16] = '\"\u0010\"';
+nullChars[17] = '\"\u0011\"';
+nullChars[18] = '\"\u0012\"';
+nullChars[19] = '\"\u0013\"';
+nullChars[20] = '\"\u0014\"';
+nullChars[21] = '\"\u0015\"';
+nullChars[22] = '\"\u0016\"';
+nullChars[23] = '\"\u0017\"';
+nullChars[24] = '\"\u0018\"';
+nullChars[25] = '\"\u0019\"';
+nullChars[26] = '\"\u001A\"';
+nullChars[27] = '\"\u001B\"';
+nullChars[28] = '\"\u001C\"';
+nullChars[29] = '\"\u001D\"';
+nullChars[30] = '\"\u001E\"';
+nullChars[31] = '\"\u001F\"';
- for (var index in nullChars) {
- assert.throws(SyntaxError, function() {
- var obj = JSON.parse('{' + nullChars[index] + "name" + nullChars[index] + ' : "John" } ');
- });
- }
+for (var index in nullChars) {
+ assert.throws(SyntaxError, function() {
+ var obj = JSON.parse('{' + nullChars[index] + "name" + nullChars[index] + ' : "John" } ');
+ });
+}
diff --git a/test/built-ins/JSON/parse/15.12.2-2-5.js b/test/built-ins/JSON/parse/15.12.2-2-5.js
index 1b0a6240b..ebd3e27be 100644
--- a/test/built-ins/JSON/parse/15.12.2-2-5.js
+++ b/test/built-ins/JSON/parse/15.12.2-2-5.js
@@ -8,42 +8,42 @@ description: >
null character
---*/
- var nullChars = new Array();
- nullChars[0] = '\"\u0000\"';
- nullChars[1] = '\"\u0001\"';
- nullChars[2] = '\"\u0002\"';
- nullChars[3] = '\"\u0003\"';
- nullChars[4] = '\"\u0004\"';
- nullChars[5] = '\"\u0005\"';
- nullChars[6] = '\"\u0006\"';
- nullChars[7] = '\"\u0007\"';
- nullChars[8] = '\"\u0008\"';
- nullChars[9] = '\"\u0009\"';
- nullChars[10] = '\"\u000A\"';
- nullChars[11] = '\"\u000B\"';
- nullChars[12] = '\"\u000C\"';
- nullChars[13] = '\"\u000D\"';
- nullChars[14] = '\"\u000E\"';
- nullChars[15] = '\"\u000F\"';
- nullChars[16] = '\"\u0010\"';
- nullChars[17] = '\"\u0011\"';
- nullChars[18] = '\"\u0012\"';
- nullChars[19] = '\"\u0013\"';
- nullChars[20] = '\"\u0014\"';
- nullChars[21] = '\"\u0015\"';
- nullChars[22] = '\"\u0016\"';
- nullChars[23] = '\"\u0017\"';
- nullChars[24] = '\"\u0018\"';
- nullChars[25] = '\"\u0019\"';
- nullChars[26] = '\"\u001A\"';
- nullChars[27] = '\"\u001B\"';
- nullChars[28] = '\"\u001C\"';
- nullChars[29] = '\"\u001D\"';
- nullChars[30] = '\"\u001E\"';
- nullChars[31] = '\"\u001F\"';
+var nullChars = new Array();
+nullChars[0] = '\"\u0000\"';
+nullChars[1] = '\"\u0001\"';
+nullChars[2] = '\"\u0002\"';
+nullChars[3] = '\"\u0003\"';
+nullChars[4] = '\"\u0004\"';
+nullChars[5] = '\"\u0005\"';
+nullChars[6] = '\"\u0006\"';
+nullChars[7] = '\"\u0007\"';
+nullChars[8] = '\"\u0008\"';
+nullChars[9] = '\"\u0009\"';
+nullChars[10] = '\"\u000A\"';
+nullChars[11] = '\"\u000B\"';
+nullChars[12] = '\"\u000C\"';
+nullChars[13] = '\"\u000D\"';
+nullChars[14] = '\"\u000E\"';
+nullChars[15] = '\"\u000F\"';
+nullChars[16] = '\"\u0010\"';
+nullChars[17] = '\"\u0011\"';
+nullChars[18] = '\"\u0012\"';
+nullChars[19] = '\"\u0013\"';
+nullChars[20] = '\"\u0014\"';
+nullChars[21] = '\"\u0015\"';
+nullChars[22] = '\"\u0016\"';
+nullChars[23] = '\"\u0017\"';
+nullChars[24] = '\"\u0018\"';
+nullChars[25] = '\"\u0019\"';
+nullChars[26] = '\"\u001A\"';
+nullChars[27] = '\"\u001B\"';
+nullChars[28] = '\"\u001C\"';
+nullChars[29] = '\"\u001D\"';
+nullChars[30] = '\"\u001E\"';
+nullChars[31] = '\"\u001F\"';
- for (var index in nullChars) {
- assert.throws(SyntaxError, function() {
- var obj = JSON.parse('{ ' + "na" + nullChars[index] + "me" + ' : "John" } ');
- });
- }
+for (var index in nullChars) {
+ assert.throws(SyntaxError, function() {
+ var obj = JSON.parse('{ ' + "na" + nullChars[index] + "me" + ' : "John" } ');
+ });
+}
diff --git a/test/built-ins/JSON/parse/15.12.2-2-6.js b/test/built-ins/JSON/parse/15.12.2-2-6.js
index c4fb8b863..80f4a5de6 100644
--- a/test/built-ins/JSON/parse/15.12.2-2-6.js
+++ b/test/built-ins/JSON/parse/15.12.2-2-6.js
@@ -8,42 +8,42 @@ description: >
character
---*/
- var nullChars = new Array();
- nullChars[0] = '\"\u0000\"';
- nullChars[1] = '\"\u0001\"';
- nullChars[2] = '\"\u0002\"';
- nullChars[3] = '\"\u0003\"';
- nullChars[4] = '\"\u0004\"';
- nullChars[5] = '\"\u0005\"';
- nullChars[6] = '\"\u0006\"';
- nullChars[7] = '\"\u0007\"';
- nullChars[8] = '\"\u0008\"';
- nullChars[9] = '\"\u0009\"';
- nullChars[10] = '\"\u000A\"';
- nullChars[11] = '\"\u000B\"';
- nullChars[12] = '\"\u000C\"';
- nullChars[13] = '\"\u000D\"';
- nullChars[14] = '\"\u000E\"';
- nullChars[15] = '\"\u000F\"';
- nullChars[16] = '\"\u0010\"';
- nullChars[17] = '\"\u0011\"';
- nullChars[18] = '\"\u0012\"';
- nullChars[19] = '\"\u0013\"';
- nullChars[20] = '\"\u0014\"';
- nullChars[21] = '\"\u0015\"';
- nullChars[22] = '\"\u0016\"';
- nullChars[23] = '\"\u0017\"';
- nullChars[24] = '\"\u0018\"';
- nullChars[25] = '\"\u0019\"';
- nullChars[26] = '\"\u001A\"';
- nullChars[27] = '\"\u001B\"';
- nullChars[28] = '\"\u001C\"';
- nullChars[29] = '\"\u001D\"';
- nullChars[30] = '\"\u001E\"';
- nullChars[31] = '\"\u001F\"';
+var nullChars = new Array();
+nullChars[0] = '\"\u0000\"';
+nullChars[1] = '\"\u0001\"';
+nullChars[2] = '\"\u0002\"';
+nullChars[3] = '\"\u0003\"';
+nullChars[4] = '\"\u0004\"';
+nullChars[5] = '\"\u0005\"';
+nullChars[6] = '\"\u0006\"';
+nullChars[7] = '\"\u0007\"';
+nullChars[8] = '\"\u0008\"';
+nullChars[9] = '\"\u0009\"';
+nullChars[10] = '\"\u000A\"';
+nullChars[11] = '\"\u000B\"';
+nullChars[12] = '\"\u000C\"';
+nullChars[13] = '\"\u000D\"';
+nullChars[14] = '\"\u000E\"';
+nullChars[15] = '\"\u000F\"';
+nullChars[16] = '\"\u0010\"';
+nullChars[17] = '\"\u0011\"';
+nullChars[18] = '\"\u0012\"';
+nullChars[19] = '\"\u0013\"';
+nullChars[20] = '\"\u0014\"';
+nullChars[21] = '\"\u0015\"';
+nullChars[22] = '\"\u0016\"';
+nullChars[23] = '\"\u0017\"';
+nullChars[24] = '\"\u0018\"';
+nullChars[25] = '\"\u0019\"';
+nullChars[26] = '\"\u001A\"';
+nullChars[27] = '\"\u001B\"';
+nullChars[28] = '\"\u001C\"';
+nullChars[29] = '\"\u001D\"';
+nullChars[30] = '\"\u001E\"';
+nullChars[31] = '\"\u001F\"';
- for (var index in nullChars) {
- assert.throws(SyntaxError, function() {
- var obj = JSON.parse('{ "name" : ' + nullChars[index] + ' } ');
- });
- }
+for (var index in nullChars) {
+ assert.throws(SyntaxError, function() {
+ var obj = JSON.parse('{ "name" : ' + nullChars[index] + ' } ');
+ });
+}
diff --git a/test/built-ins/JSON/parse/15.12.2-2-7.js b/test/built-ins/JSON/parse/15.12.2-2-7.js
index 2cb912b1f..ed1db8a09 100644
--- a/test/built-ins/JSON/parse/15.12.2-2-7.js
+++ b/test/built-ins/JSON/parse/15.12.2-2-7.js
@@ -8,42 +8,42 @@ description: >
null character
---*/
- var nullChars = new Array();
- nullChars[0] = '\"\u0000\"';
- nullChars[1] = '\"\u0001\"';
- nullChars[2] = '\"\u0002\"';
- nullChars[3] = '\"\u0003\"';
- nullChars[4] = '\"\u0004\"';
- nullChars[5] = '\"\u0005\"';
- nullChars[6] = '\"\u0006\"';
- nullChars[7] = '\"\u0007\"';
- nullChars[8] = '\"\u0008\"';
- nullChars[9] = '\"\u0009\"';
- nullChars[10] = '\"\u000A\"';
- nullChars[11] = '\"\u000B\"';
- nullChars[12] = '\"\u000C\"';
- nullChars[13] = '\"\u000D\"';
- nullChars[14] = '\"\u000E\"';
- nullChars[15] = '\"\u000F\"';
- nullChars[16] = '\"\u0010\"';
- nullChars[17] = '\"\u0011\"';
- nullChars[18] = '\"\u0012\"';
- nullChars[19] = '\"\u0013\"';
- nullChars[20] = '\"\u0014\"';
- nullChars[21] = '\"\u0015\"';
- nullChars[22] = '\"\u0016\"';
- nullChars[23] = '\"\u0017\"';
- nullChars[24] = '\"\u0018\"';
- nullChars[25] = '\"\u0019\"';
- nullChars[26] = '\"\u001A\"';
- nullChars[27] = '\"\u001B\"';
- nullChars[28] = '\"\u001C\"';
- nullChars[29] = '\"\u001D\"';
- nullChars[30] = '\"\u001E\"';
- nullChars[31] = '\"\u001F\"';
+var nullChars = new Array();
+nullChars[0] = '\"\u0000\"';
+nullChars[1] = '\"\u0001\"';
+nullChars[2] = '\"\u0002\"';
+nullChars[3] = '\"\u0003\"';
+nullChars[4] = '\"\u0004\"';
+nullChars[5] = '\"\u0005\"';
+nullChars[6] = '\"\u0006\"';
+nullChars[7] = '\"\u0007\"';
+nullChars[8] = '\"\u0008\"';
+nullChars[9] = '\"\u0009\"';
+nullChars[10] = '\"\u000A\"';
+nullChars[11] = '\"\u000B\"';
+nullChars[12] = '\"\u000C\"';
+nullChars[13] = '\"\u000D\"';
+nullChars[14] = '\"\u000E\"';
+nullChars[15] = '\"\u000F\"';
+nullChars[16] = '\"\u0010\"';
+nullChars[17] = '\"\u0011\"';
+nullChars[18] = '\"\u0012\"';
+nullChars[19] = '\"\u0013\"';
+nullChars[20] = '\"\u0014\"';
+nullChars[21] = '\"\u0015\"';
+nullChars[22] = '\"\u0016\"';
+nullChars[23] = '\"\u0017\"';
+nullChars[24] = '\"\u0018\"';
+nullChars[25] = '\"\u0019\"';
+nullChars[26] = '\"\u001A\"';
+nullChars[27] = '\"\u001B\"';
+nullChars[28] = '\"\u001C\"';
+nullChars[29] = '\"\u001D\"';
+nullChars[30] = '\"\u001E\"';
+nullChars[31] = '\"\u001F\"';
- for (var index in nullChars) {
- assert.throws(SyntaxError, function() {
- var obj = JSON.parse('{ "name" : ' + nullChars[index] + "John" + ' } ');
- });
- }
+for (var index in nullChars) {
+ assert.throws(SyntaxError, function() {
+ var obj = JSON.parse('{ "name" : ' + nullChars[index] + "John" + ' } ');
+ });
+}
diff --git a/test/built-ins/JSON/parse/15.12.2-2-8.js b/test/built-ins/JSON/parse/15.12.2-2-8.js
index ab571c59f..ae58602b3 100644
--- a/test/built-ins/JSON/parse/15.12.2-2-8.js
+++ b/test/built-ins/JSON/parse/15.12.2-2-8.js
@@ -8,42 +8,42 @@ description: >
null character
---*/
- var nullChars = new Array();
- nullChars[0] = '\"\u0000\"';
- nullChars[1] = '\"\u0001\"';
- nullChars[2] = '\"\u0002\"';
- nullChars[3] = '\"\u0003\"';
- nullChars[4] = '\"\u0004\"';
- nullChars[5] = '\"\u0005\"';
- nullChars[6] = '\"\u0006\"';
- nullChars[7] = '\"\u0007\"';
- nullChars[8] = '\"\u0008\"';
- nullChars[9] = '\"\u0009\"';
- nullChars[10] = '\"\u000A\"';
- nullChars[11] = '\"\u000B\"';
- nullChars[12] = '\"\u000C\"';
- nullChars[13] = '\"\u000D\"';
- nullChars[14] = '\"\u000E\"';
- nullChars[15] = '\"\u000F\"';
- nullChars[16] = '\"\u0010\"';
- nullChars[17] = '\"\u0011\"';
- nullChars[18] = '\"\u0012\"';
- nullChars[19] = '\"\u0013\"';
- nullChars[20] = '\"\u0014\"';
- nullChars[21] = '\"\u0015\"';
- nullChars[22] = '\"\u0016\"';
- nullChars[23] = '\"\u0017\"';
- nullChars[24] = '\"\u0018\"';
- nullChars[25] = '\"\u0019\"';
- nullChars[26] = '\"\u001A\"';
- nullChars[27] = '\"\u001B\"';
- nullChars[28] = '\"\u001C\"';
- nullChars[29] = '\"\u001D\"';
- nullChars[30] = '\"\u001E\"';
- nullChars[31] = '\"\u001F\"';
+var nullChars = new Array();
+nullChars[0] = '\"\u0000\"';
+nullChars[1] = '\"\u0001\"';
+nullChars[2] = '\"\u0002\"';
+nullChars[3] = '\"\u0003\"';
+nullChars[4] = '\"\u0004\"';
+nullChars[5] = '\"\u0005\"';
+nullChars[6] = '\"\u0006\"';
+nullChars[7] = '\"\u0007\"';
+nullChars[8] = '\"\u0008\"';
+nullChars[9] = '\"\u0009\"';
+nullChars[10] = '\"\u000A\"';
+nullChars[11] = '\"\u000B\"';
+nullChars[12] = '\"\u000C\"';
+nullChars[13] = '\"\u000D\"';
+nullChars[14] = '\"\u000E\"';
+nullChars[15] = '\"\u000F\"';
+nullChars[16] = '\"\u0010\"';
+nullChars[17] = '\"\u0011\"';
+nullChars[18] = '\"\u0012\"';
+nullChars[19] = '\"\u0013\"';
+nullChars[20] = '\"\u0014\"';
+nullChars[21] = '\"\u0015\"';
+nullChars[22] = '\"\u0016\"';
+nullChars[23] = '\"\u0017\"';
+nullChars[24] = '\"\u0018\"';
+nullChars[25] = '\"\u0019\"';
+nullChars[26] = '\"\u001A\"';
+nullChars[27] = '\"\u001B\"';
+nullChars[28] = '\"\u001C\"';
+nullChars[29] = '\"\u001D\"';
+nullChars[30] = '\"\u001E\"';
+nullChars[31] = '\"\u001F\"';
- for (var index in nullChars) {
- assert.throws(SyntaxError, function() {
- var obj = JSON.parse('{ "name" : ' + "John" + nullChars[index] + ' } ');
- });
- }
+for (var index in nullChars) {
+ assert.throws(SyntaxError, function() {
+ var obj = JSON.parse('{ "name" : ' + "John" + nullChars[index] + ' } ');
+ });
+}
diff --git a/test/built-ins/JSON/parse/15.12.2-2-9.js b/test/built-ins/JSON/parse/15.12.2-2-9.js
index ab7ca39cc..02b7bb72d 100644
--- a/test/built-ins/JSON/parse/15.12.2-2-9.js
+++ b/test/built-ins/JSON/parse/15.12.2-2-9.js
@@ -8,42 +8,42 @@ description: >
ends with a null character
---*/
- var nullChars = new Array();
- nullChars[0] = '\"\u0000\"';
- nullChars[1] = '\"\u0001\"';
- nullChars[2] = '\"\u0002\"';
- nullChars[3] = '\"\u0003\"';
- nullChars[4] = '\"\u0004\"';
- nullChars[5] = '\"\u0005\"';
- nullChars[6] = '\"\u0006\"';
- nullChars[7] = '\"\u0007\"';
- nullChars[8] = '\"\u0008\"';
- nullChars[9] = '\"\u0009\"';
- nullChars[10] = '\"\u000A\"';
- nullChars[11] = '\"\u000B\"';
- nullChars[12] = '\"\u000C\"';
- nullChars[13] = '\"\u000D\"';
- nullChars[14] = '\"\u000E\"';
- nullChars[15] = '\"\u000F\"';
- nullChars[16] = '\"\u0010\"';
- nullChars[17] = '\"\u0011\"';
- nullChars[18] = '\"\u0012\"';
- nullChars[19] = '\"\u0013\"';
- nullChars[20] = '\"\u0014\"';
- nullChars[21] = '\"\u0015\"';
- nullChars[22] = '\"\u0016\"';
- nullChars[23] = '\"\u0017\"';
- nullChars[24] = '\"\u0018\"';
- nullChars[25] = '\"\u0019\"';
- nullChars[26] = '\"\u001A\"';
- nullChars[27] = '\"\u001B\"';
- nullChars[28] = '\"\u001C\"';
- nullChars[29] = '\"\u001D\"';
- nullChars[30] = '\"\u001E\"';
- nullChars[31] = '\"\u001F\"';
+var nullChars = new Array();
+nullChars[0] = '\"\u0000\"';
+nullChars[1] = '\"\u0001\"';
+nullChars[2] = '\"\u0002\"';
+nullChars[3] = '\"\u0003\"';
+nullChars[4] = '\"\u0004\"';
+nullChars[5] = '\"\u0005\"';
+nullChars[6] = '\"\u0006\"';
+nullChars[7] = '\"\u0007\"';
+nullChars[8] = '\"\u0008\"';
+nullChars[9] = '\"\u0009\"';
+nullChars[10] = '\"\u000A\"';
+nullChars[11] = '\"\u000B\"';
+nullChars[12] = '\"\u000C\"';
+nullChars[13] = '\"\u000D\"';
+nullChars[14] = '\"\u000E\"';
+nullChars[15] = '\"\u000F\"';
+nullChars[16] = '\"\u0010\"';
+nullChars[17] = '\"\u0011\"';
+nullChars[18] = '\"\u0012\"';
+nullChars[19] = '\"\u0013\"';
+nullChars[20] = '\"\u0014\"';
+nullChars[21] = '\"\u0015\"';
+nullChars[22] = '\"\u0016\"';
+nullChars[23] = '\"\u0017\"';
+nullChars[24] = '\"\u0018\"';
+nullChars[25] = '\"\u0019\"';
+nullChars[26] = '\"\u001A\"';
+nullChars[27] = '\"\u001B\"';
+nullChars[28] = '\"\u001C\"';
+nullChars[29] = '\"\u001D\"';
+nullChars[30] = '\"\u001E\"';
+nullChars[31] = '\"\u001F\"';
- for (var index in nullChars) {
- assert.throws(SyntaxError, function() {
- var obj = JSON.parse('{ "name" : ' + nullChars[index] + "John" + nullChars[index] + ' } ');
- });
- }
+for (var index in nullChars) {
+ assert.throws(SyntaxError, function() {
+ var obj = JSON.parse('{ "name" : ' + nullChars[index] + "John" + nullChars[index] + ' } ');
+ });
+}
diff --git a/test/built-ins/JSON/parse/revived-proxy.js b/test/built-ins/JSON/parse/revived-proxy.js
index fe3686849..fbcb3aa46 100644
--- a/test/built-ins/JSON/parse/revived-proxy.js
+++ b/test/built-ins/JSON/parse/revived-proxy.js
@@ -35,7 +35,10 @@ info: |
features: [Proxy]
---*/
-var objectProxy = new Proxy({ length: 0, other: 0 }, {});
+var objectProxy = new Proxy({
+ length: 0,
+ other: 0
+}, {});
var arrayProxy = new Proxy([], {});
var arrayProxyProxy = new Proxy(arrayProxy, {});
var visitedOther, injectProxy;
diff --git a/test/built-ins/JSON/parse/reviver-object-define-prop-err.js b/test/built-ins/JSON/parse/reviver-object-define-prop-err.js
index c42cff0a6..d62dbaf89 100644
--- a/test/built-ins/JSON/parse/reviver-object-define-prop-err.js
+++ b/test/built-ins/JSON/parse/reviver-object-define-prop-err.js
@@ -30,7 +30,9 @@ info: |
features: [Proxy]
---*/
-var badDefine = new Proxy({ 0: null }, {
+var badDefine = new Proxy({
+ 0: null
+}, {
defineProperty: function() {
throw new Test262Error();
}
diff --git a/test/built-ins/JSON/parse/reviver-object-delete-err.js b/test/built-ins/JSON/parse/reviver-object-delete-err.js
index d596d4e27..edded21fa 100644
--- a/test/built-ins/JSON/parse/reviver-object-delete-err.js
+++ b/test/built-ins/JSON/parse/reviver-object-delete-err.js
@@ -28,7 +28,9 @@ info: |
features: [Proxy]
---*/
-var badDelete = new Proxy({ a: 1 }, {
+var badDelete = new Proxy({
+ a: 1
+}, {
deleteProperty: function() {
throw new Test262Error();
}
diff --git a/test/built-ins/JSON/stringify/15.12.3-0-1.js b/test/built-ins/JSON/stringify/15.12.3-0-1.js
index c79c6f026..5cc4240c7 100644
--- a/test/built-ins/JSON/stringify/15.12.3-0-1.js
+++ b/test/built-ins/JSON/stringify/15.12.3-0-1.js
@@ -17,6 +17,6 @@ es5id: 15.12.3-0-1
description: JSON.stringify must exist as be a function
---*/
- var f = JSON.stringify;
+var f = JSON.stringify;
assert.sameValue(typeof(f), "function", 'typeof(f)');
diff --git a/test/built-ins/JSON/stringify/15.12.3-0-2.js b/test/built-ins/JSON/stringify/15.12.3-0-2.js
index 3f5fe1ec0..08e864d0c 100644
--- a/test/built-ins/JSON/stringify/15.12.3-0-2.js
+++ b/test/built-ins/JSON/stringify/15.12.3-0-2.js
@@ -17,7 +17,7 @@ es5id: 15.12.3-0-2
description: JSON.stringify must exist as be a function taking 3 parameters
---*/
- var f = JSON.stringify;
+var f = JSON.stringify;
assert.sameValue(typeof(f), "function", 'typeof(f)');
assert.sameValue(f.length, 3, 'f.length');
diff --git a/test/built-ins/JSON/stringify/15.12.3-0-3.js b/test/built-ins/JSON/stringify/15.12.3-0-3.js
index d8a575973..76e41ffb8 100644
--- a/test/built-ins/JSON/stringify/15.12.3-0-3.js
+++ b/test/built-ins/JSON/stringify/15.12.3-0-3.js
@@ -10,7 +10,7 @@ es5id: 15.12.3-0-3
description: JSON.stringify must be deletable (configurable)
---*/
- var o = JSON;
- var desc = Object.getOwnPropertyDescriptor(o, "stringify");
+var o = JSON;
+var desc = Object.getOwnPropertyDescriptor(o, "stringify");
assert.sameValue(desc.configurable, true, 'desc.configurable');
diff --git a/test/built-ins/JSON/stringify/15.12.3-11-10.js b/test/built-ins/JSON/stringify/15.12.3-11-10.js
index f15173196..c59045ebb 100644
--- a/test/built-ins/JSON/stringify/15.12.3-11-10.js
+++ b/test/built-ins/JSON/stringify/15.12.3-11-10.js
@@ -8,4 +8,6 @@ description: >
value can return undefined.
---*/
-assert.sameValue(JSON.stringify(42, function(k, v) { return undefined }), undefined, 'JSON.stringify(42, function(k, v) { return undefined })');
+assert.sameValue(JSON.stringify(42, function(k, v) {
+ return undefined
+}), undefined, 'JSON.stringify(42, function(k, v) { return undefined })');
diff --git a/test/built-ins/JSON/stringify/15.12.3-11-11.js b/test/built-ins/JSON/stringify/15.12.3-11-11.js
index da886044b..f4da04f92 100644
--- a/test/built-ins/JSON/stringify/15.12.3-11-11.js
+++ b/test/built-ins/JSON/stringify/15.12.3-11-11.js
@@ -8,4 +8,8 @@ description: >
can return undefined.
---*/
-assert.sameValue(JSON.stringify({prop:1}, function(k, v) { return undefined }), undefined, 'JSON.stringify({prop:1}, function(k, v) { return undefined })');
+assert.sameValue(JSON.stringify({
+ prop: 1
+}, function(k, v) {
+ return undefined
+}), undefined, 'JSON.stringify({prop:1}, function(k, v) { return undefined })');
diff --git a/test/built-ins/JSON/stringify/15.12.3-11-12.js b/test/built-ins/JSON/stringify/15.12.3-11-12.js
index 5fdfea838..1238189a0 100644
--- a/test/built-ins/JSON/stringify/15.12.3-11-12.js
+++ b/test/built-ins/JSON/stringify/15.12.3-11-12.js
@@ -8,4 +8,6 @@ description: >
can return an Array.
---*/
-assert.sameValue(JSON.stringify(42, function(k, v) { return v==42 ?[4,2]:v }), '[4,2]', 'JSON.stringify(42, function(k, v) { return v==42 ?[4,2]:v })');
+assert.sameValue(JSON.stringify(42, function(k, v) {
+ return v == 42 ? [4, 2] : v
+}), '[4,2]', 'JSON.stringify(42, function(k, v) { return v==42 ?[4,2]:v })');
diff --git a/test/built-ins/JSON/stringify/15.12.3-11-13.js b/test/built-ins/JSON/stringify/15.12.3-11-13.js
index e98f67116..22b244c0b 100644
--- a/test/built-ins/JSON/stringify/15.12.3-11-13.js
+++ b/test/built-ins/JSON/stringify/15.12.3-11-13.js
@@ -8,4 +8,8 @@ description: >
can return an Object.
---*/
-assert.sameValue(JSON.stringify(42, function(k, v) { return v==42 ? {forty:2}: v}), '{"forty":2}', 'JSON.stringify(42, function(k, v) { return v==42 ? {forty:2}: v})');
+assert.sameValue(JSON.stringify(42, function(k, v) {
+ return v == 42 ? {
+ forty: 2
+ } : v
+}), '{"forty":2}', 'JSON.stringify(42, function(k, v) { return v==42 ? {forty:2}: v})');
diff --git a/test/built-ins/JSON/stringify/15.12.3-11-15.js b/test/built-ins/JSON/stringify/15.12.3-11-15.js
index d2cb93191..5a4b35c96 100644
--- a/test/built-ins/JSON/stringify/15.12.3-11-15.js
+++ b/test/built-ins/JSON/stringify/15.12.3-11-15.js
@@ -8,4 +8,6 @@ description: >
returns the replacer value.
---*/
-assert.sameValue(JSON.stringify(function() {}, function(k,v) {return 99}), '99', 'JSON.stringify(function() {}, function(k,v) {return 99})');
+assert.sameValue(JSON.stringify(function() {}, function(k, v) {
+ return 99
+}), '99', 'JSON.stringify(function() {}, function(k,v) {return 99})');
diff --git a/test/built-ins/JSON/stringify/15.12.3-11-16.js b/test/built-ins/JSON/stringify/15.12.3-11-16.js
index e9d92d5c2..23f89c2f9 100644
--- a/test/built-ins/JSON/stringify/15.12.3-11-16.js
+++ b/test/built-ins/JSON/stringify/15.12.3-11-16.js
@@ -9,46 +9,48 @@ description: >
step 2.c)
---*/
- var result = true;
+var result = true;
- var expectedNullChars = new Array();
- expectedNullChars[0] = "\\u0000";
- expectedNullChars[1] = "\\u0001";
- expectedNullChars[2] = "\\u0002";
- expectedNullChars[3] = "\\u0003";
- expectedNullChars[4] = "\\u0004";
- expectedNullChars[5] = "\\u0005";
- expectedNullChars[6] = "\\u0006";
- expectedNullChars[7] = "\\u0007";
- expectedNullChars[8] = "\\b";
- expectedNullChars[9] = "\\t";
- expectedNullChars[10] = "\\n";
- expectedNullChars[11] = "\\u000b";
- expectedNullChars[12] = "\\f";
- expectedNullChars[13] = "\\r";
- expectedNullChars[14] = "\\u000e";
- expectedNullChars[15] = "\\u000f";
- expectedNullChars[16] = "\\u0010";
- expectedNullChars[17] = "\\u0011";
- expectedNullChars[18] = "\\u0012";
- expectedNullChars[19] = "\\u0013";
- expectedNullChars[20] = "\\u0014";
- expectedNullChars[21] = "\\u0015";
- expectedNullChars[22] = "\\u0016";
- expectedNullChars[23] = "\\u0017";
- expectedNullChars[24] = "\\u0018";
- expectedNullChars[25] = "\\u0019";
- expectedNullChars[26] = "\\u001a";
- expectedNullChars[27] = "\\u001b";
- expectedNullChars[28] = "\\u001c";
- expectedNullChars[29] = "\\u001d";
- expectedNullChars[30] = "\\u001e";
- expectedNullChars[31] = "\\u001f";
+var expectedNullChars = new Array();
+expectedNullChars[0] = "\\u0000";
+expectedNullChars[1] = "\\u0001";
+expectedNullChars[2] = "\\u0002";
+expectedNullChars[3] = "\\u0003";
+expectedNullChars[4] = "\\u0004";
+expectedNullChars[5] = "\\u0005";
+expectedNullChars[6] = "\\u0006";
+expectedNullChars[7] = "\\u0007";
+expectedNullChars[8] = "\\b";
+expectedNullChars[9] = "\\t";
+expectedNullChars[10] = "\\n";
+expectedNullChars[11] = "\\u000b";
+expectedNullChars[12] = "\\f";
+expectedNullChars[13] = "\\r";
+expectedNullChars[14] = "\\u000e";
+expectedNullChars[15] = "\\u000f";
+expectedNullChars[16] = "\\u0010";
+expectedNullChars[17] = "\\u0011";
+expectedNullChars[18] = "\\u0012";
+expectedNullChars[19] = "\\u0013";
+expectedNullChars[20] = "\\u0014";
+expectedNullChars[21] = "\\u0015";
+expectedNullChars[22] = "\\u0016";
+expectedNullChars[23] = "\\u0017";
+expectedNullChars[24] = "\\u0018";
+expectedNullChars[25] = "\\u0019";
+expectedNullChars[26] = "\\u001a";
+expectedNullChars[27] = "\\u001b";
+expectedNullChars[28] = "\\u001c";
+expectedNullChars[29] = "\\u001d";
+expectedNullChars[30] = "\\u001e";
+expectedNullChars[31] = "\\u001f";
- for (var index in expectedNullChars) {
+for (var index in expectedNullChars) {
- var str = JSON.stringify({ "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F": "John" });
- result = (result && str.indexOf(expectedNullChars[index]) !== -1);
- }
+ var str = JSON.stringify({
+ "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F": "John"
+ });
+ result = (result && str.indexOf(expectedNullChars[index]) !== -1);
+}
assert(result, 'result !== true');
diff --git a/test/built-ins/JSON/stringify/15.12.3-11-17.js b/test/built-ins/JSON/stringify/15.12.3-11-17.js
index fe8a268b6..972323629 100644
--- a/test/built-ins/JSON/stringify/15.12.3-11-17.js
+++ b/test/built-ins/JSON/stringify/15.12.3-11-17.js
@@ -9,46 +9,48 @@ description: >
Quote(value) step 2.c)
---*/
- var result = true;
+var result = true;
- var expectedNullChars = new Array();
- expectedNullChars[0] = "\\u0000";
- expectedNullChars[1] = "\\u0001";
- expectedNullChars[2] = "\\u0002";
- expectedNullChars[3] = "\\u0003";
- expectedNullChars[4] = "\\u0004";
- expectedNullChars[5] = "\\u0005";
- expectedNullChars[6] = "\\u0006";
- expectedNullChars[7] = "\\u0007";
- expectedNullChars[8] = "\\b";
- expectedNullChars[9] = "\\t";
- expectedNullChars[10] = "\\n";
- expectedNullChars[11] = "\\u000b";
- expectedNullChars[12] = "\\f";
- expectedNullChars[13] = "\\r";
- expectedNullChars[14] = "\\u000e";
- expectedNullChars[15] = "\\u000f";
- expectedNullChars[16] = "\\u0010";
- expectedNullChars[17] = "\\u0011";
- expectedNullChars[18] = "\\u0012";
- expectedNullChars[19] = "\\u0013";
- expectedNullChars[20] = "\\u0014";
- expectedNullChars[21] = "\\u0015";
- expectedNullChars[22] = "\\u0016";
- expectedNullChars[23] = "\\u0017";
- expectedNullChars[24] = "\\u0018";
- expectedNullChars[25] = "\\u0019";
- expectedNullChars[26] = "\\u001a";
- expectedNullChars[27] = "\\u001b";
- expectedNullChars[28] = "\\u001c";
- expectedNullChars[29] = "\\u001d";
- expectedNullChars[30] = "\\u001e";
- expectedNullChars[31] = "\\u001f";
+var expectedNullChars = new Array();
+expectedNullChars[0] = "\\u0000";
+expectedNullChars[1] = "\\u0001";
+expectedNullChars[2] = "\\u0002";
+expectedNullChars[3] = "\\u0003";
+expectedNullChars[4] = "\\u0004";
+expectedNullChars[5] = "\\u0005";
+expectedNullChars[6] = "\\u0006";
+expectedNullChars[7] = "\\u0007";
+expectedNullChars[8] = "\\b";
+expectedNullChars[9] = "\\t";
+expectedNullChars[10] = "\\n";
+expectedNullChars[11] = "\\u000b";
+expectedNullChars[12] = "\\f";
+expectedNullChars[13] = "\\r";
+expectedNullChars[14] = "\\u000e";
+expectedNullChars[15] = "\\u000f";
+expectedNullChars[16] = "\\u0010";
+expectedNullChars[17] = "\\u0011";
+expectedNullChars[18] = "\\u0012";
+expectedNullChars[19] = "\\u0013";
+expectedNullChars[20] = "\\u0014";
+expectedNullChars[21] = "\\u0015";
+expectedNullChars[22] = "\\u0016";
+expectedNullChars[23] = "\\u0017";
+expectedNullChars[24] = "\\u0018";
+expectedNullChars[25] = "\\u0019";
+expectedNullChars[26] = "\\u001a";
+expectedNullChars[27] = "\\u001b";
+expectedNullChars[28] = "\\u001c";
+expectedNullChars[29] = "\\u001d";
+expectedNullChars[30] = "\\u001e";
+expectedNullChars[31] = "\\u001f";
- for (var index in expectedNullChars) {
+for (var index in expectedNullChars) {
- var str = JSON.stringify({ "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001Fname": "John" });
- result = (result && str.indexOf(expectedNullChars[index]) !== -1);
- }
+ var str = JSON.stringify({
+ "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001Fname": "John"
+ });
+ result = (result && str.indexOf(expectedNullChars[index]) !== -1);
+}
assert(result, 'result !== true');
diff --git a/test/built-ins/JSON/stringify/15.12.3-11-18.js b/test/built-ins/JSON/stringify/15.12.3-11-18.js
index 721fe41e3..6766a4e19 100644
--- a/test/built-ins/JSON/stringify/15.12.3-11-18.js
+++ b/test/built-ins/JSON/stringify/15.12.3-11-18.js
@@ -9,46 +9,48 @@ description: >
Quote(value) step 2.c)
---*/
- var result = true;
+var result = true;
- var expectedNullChars = new Array();
- expectedNullChars[0] = "\\u0000";
- expectedNullChars[1] = "\\u0001";
- expectedNullChars[2] = "\\u0002";
- expectedNullChars[3] = "\\u0003";
- expectedNullChars[4] = "\\u0004";
- expectedNullChars[5] = "\\u0005";
- expectedNullChars[6] = "\\u0006";
- expectedNullChars[7] = "\\u0007";
- expectedNullChars[8] = "\\b";
- expectedNullChars[9] = "\\t";
- expectedNullChars[10] = "\\n";
- expectedNullChars[11] = "\\u000b";
- expectedNullChars[12] = "\\f";
- expectedNullChars[13] = "\\r";
- expectedNullChars[14] = "\\u000e";
- expectedNullChars[15] = "\\u000f";
- expectedNullChars[16] = "\\u0010";
- expectedNullChars[17] = "\\u0011";
- expectedNullChars[18] = "\\u0012";
- expectedNullChars[19] = "\\u0013";
- expectedNullChars[20] = "\\u0014";
- expectedNullChars[21] = "\\u0015";
- expectedNullChars[22] = "\\u0016";
- expectedNullChars[23] = "\\u0017";
- expectedNullChars[24] = "\\u0018";
- expectedNullChars[25] = "\\u0019";
- expectedNullChars[26] = "\\u001a";
- expectedNullChars[27] = "\\u001b";
- expectedNullChars[28] = "\\u001c";
- expectedNullChars[29] = "\\u001d";
- expectedNullChars[30] = "\\u001e";
- expectedNullChars[31] = "\\u001f";
+var expectedNullChars = new Array();
+expectedNullChars[0] = "\\u0000";
+expectedNullChars[1] = "\\u0001";
+expectedNullChars[2] = "\\u0002";
+expectedNullChars[3] = "\\u0003";
+expectedNullChars[4] = "\\u0004";
+expectedNullChars[5] = "\\u0005";
+expectedNullChars[6] = "\\u0006";
+expectedNullChars[7] = "\\u0007";
+expectedNullChars[8] = "\\b";
+expectedNullChars[9] = "\\t";
+expectedNullChars[10] = "\\n";
+expectedNullChars[11] = "\\u000b";
+expectedNullChars[12] = "\\f";
+expectedNullChars[13] = "\\r";
+expectedNullChars[14] = "\\u000e";
+expectedNullChars[15] = "\\u000f";
+expectedNullChars[16] = "\\u0010";
+expectedNullChars[17] = "\\u0011";
+expectedNullChars[18] = "\\u0012";
+expectedNullChars[19] = "\\u0013";
+expectedNullChars[20] = "\\u0014";
+expectedNullChars[21] = "\\u0015";
+expectedNullChars[22] = "\\u0016";
+expectedNullChars[23] = "\\u0017";
+expectedNullChars[24] = "\\u0018";
+expectedNullChars[25] = "\\u0019";
+expectedNullChars[26] = "\\u001a";
+expectedNullChars[27] = "\\u001b";
+expectedNullChars[28] = "\\u001c";
+expectedNullChars[29] = "\\u001d";
+expectedNullChars[30] = "\\u001e";
+expectedNullChars[31] = "\\u001f";
- for (var index in expectedNullChars) {
+for (var index in expectedNullChars) {
- var str = JSON.stringify({ "name\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F": "John" });
- result = (result && str.indexOf(expectedNullChars[index]) !== -1);
- }
+ var str = JSON.stringify({
+ "name\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F": "John"
+ });
+ result = (result && str.indexOf(expectedNullChars[index]) !== -1);
+}
assert(result, 'result !== true');
diff --git a/test/built-ins/JSON/stringify/15.12.3-11-19.js b/test/built-ins/JSON/stringify/15.12.3-11-19.js
index c372e890f..052e394f2 100644
--- a/test/built-ins/JSON/stringify/15.12.3-11-19.js
+++ b/test/built-ins/JSON/stringify/15.12.3-11-19.js
@@ -9,46 +9,48 @@ description: >
operation Quote(value) step 2.c)
---*/
- var result = true;
+var result = true;
- var expectedNullChars = new Array();
- expectedNullChars[0] = "\\u0000";
- expectedNullChars[1] = "\\u0001";
- expectedNullChars[2] = "\\u0002";
- expectedNullChars[3] = "\\u0003";
- expectedNullChars[4] = "\\u0004";
- expectedNullChars[5] = "\\u0005";
- expectedNullChars[6] = "\\u0006";
- expectedNullChars[7] = "\\u0007";
- expectedNullChars[8] = "\\b";
- expectedNullChars[9] = "\\t";
- expectedNullChars[10] = "\\n";
- expectedNullChars[11] = "\\u000b";
- expectedNullChars[12] = "\\f";
- expectedNullChars[13] = "\\r";
- expectedNullChars[14] = "\\u000e";
- expectedNullChars[15] = "\\u000f";
- expectedNullChars[16] = "\\u0010";
- expectedNullChars[17] = "\\u0011";
- expectedNullChars[18] = "\\u0012";
- expectedNullChars[19] = "\\u0013";
- expectedNullChars[20] = "\\u0014";
- expectedNullChars[21] = "\\u0015";
- expectedNullChars[22] = "\\u0016";
- expectedNullChars[23] = "\\u0017";
- expectedNullChars[24] = "\\u0018";
- expectedNullChars[25] = "\\u0019";
- expectedNullChars[26] = "\\u001a";
- expectedNullChars[27] = "\\u001b";
- expectedNullChars[28] = "\\u001c";
- expectedNullChars[29] = "\\u001d";
- expectedNullChars[30] = "\\u001e";
- expectedNullChars[31] = "\\u001f";
+var expectedNullChars = new Array();
+expectedNullChars[0] = "\\u0000";
+expectedNullChars[1] = "\\u0001";
+expectedNullChars[2] = "\\u0002";
+expectedNullChars[3] = "\\u0003";
+expectedNullChars[4] = "\\u0004";
+expectedNullChars[5] = "\\u0005";
+expectedNullChars[6] = "\\u0006";
+expectedNullChars[7] = "\\u0007";
+expectedNullChars[8] = "\\b";
+expectedNullChars[9] = "\\t";
+expectedNullChars[10] = "\\n";
+expectedNullChars[11] = "\\u000b";
+expectedNullChars[12] = "\\f";
+expectedNullChars[13] = "\\r";
+expectedNullChars[14] = "\\u000e";
+expectedNullChars[15] = "\\u000f";
+expectedNullChars[16] = "\\u0010";
+expectedNullChars[17] = "\\u0011";
+expectedNullChars[18] = "\\u0012";
+expectedNullChars[19] = "\\u0013";
+expectedNullChars[20] = "\\u0014";
+expectedNullChars[21] = "\\u0015";
+expectedNullChars[22] = "\\u0016";
+expectedNullChars[23] = "\\u0017";
+expectedNullChars[24] = "\\u0018";
+expectedNullChars[25] = "\\u0019";
+expectedNullChars[26] = "\\u001a";
+expectedNullChars[27] = "\\u001b";
+expectedNullChars[28] = "\\u001c";
+expectedNullChars[29] = "\\u001d";
+expectedNullChars[30] = "\\u001e";
+expectedNullChars[31] = "\\u001f";
- for (var index in expectedNullChars) {
+for (var index in expectedNullChars) {
- var str = JSON.stringify({ "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001Fname\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F": "John" });
- result = (result && str.indexOf(expectedNullChars[index]) !== -1 && str.indexOf(expectedNullChars[index]) !== -1);
- }
+ var str = JSON.stringify({
+ "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001Fname\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F": "John"
+ });
+ result = (result && str.indexOf(expectedNullChars[index]) !== -1 && str.indexOf(expectedNullChars[index]) !== -1);
+}
assert(result, 'result !== true');
diff --git a/test/built-ins/JSON/stringify/15.12.3-11-2.js b/test/built-ins/JSON/stringify/15.12.3-11-2.js
index f6dc5e862..adc1c36c8 100644
--- a/test/built-ins/JSON/stringify/15.12.3-11-2.js
+++ b/test/built-ins/JSON/stringify/15.12.3-11-2.js
@@ -8,4 +8,6 @@ description: >
undefined value.
---*/
-assert.sameValue(JSON.stringify(undefined, function(k, v) { return "replacement" }), '"replacement"', 'JSON.stringify(undefined, function(k, v) { return "replacement" })');
+assert.sameValue(JSON.stringify(undefined, function(k, v) {
+ return "replacement"
+}), '"replacement"', 'JSON.stringify(undefined, function(k, v) { return "replacement" })');
diff --git a/test/built-ins/JSON/stringify/15.12.3-11-20.js b/test/built-ins/JSON/stringify/15.12.3-11-20.js
index 6b7c2e6f4..8c9bc2783 100644
--- a/test/built-ins/JSON/stringify/15.12.3-11-20.js
+++ b/test/built-ins/JSON/stringify/15.12.3-11-20.js
@@ -9,46 +9,48 @@ description: >
operation Quote(value) step 2.c)
---*/
- var result = true;
+var result = true;
- var expectedNullChars = new Array();
- expectedNullChars[0] = "\\u0000";
- expectedNullChars[1] = "\\u0001";
- expectedNullChars[2] = "\\u0002";
- expectedNullChars[3] = "\\u0003";
- expectedNullChars[4] = "\\u0004";
- expectedNullChars[5] = "\\u0005";
- expectedNullChars[6] = "\\u0006";
- expectedNullChars[7] = "\\u0007";
- expectedNullChars[8] = "\\b";
- expectedNullChars[9] = "\\t";
- expectedNullChars[10] = "\\n";
- expectedNullChars[11] = "\\u000b";
- expectedNullChars[12] = "\\f";
- expectedNullChars[13] = "\\r";
- expectedNullChars[14] = "\\u000e";
- expectedNullChars[15] = "\\u000f";
- expectedNullChars[16] = "\\u0010";
- expectedNullChars[17] = "\\u0011";
- expectedNullChars[18] = "\\u0012";
- expectedNullChars[19] = "\\u0013";
- expectedNullChars[20] = "\\u0014";
- expectedNullChars[21] = "\\u0015";
- expectedNullChars[22] = "\\u0016";
- expectedNullChars[23] = "\\u0017";
- expectedNullChars[24] = "\\u0018";
- expectedNullChars[25] = "\\u0019";
- expectedNullChars[26] = "\\u001a";
- expectedNullChars[27] = "\\u001b";
- expectedNullChars[28] = "\\u001c";
- expectedNullChars[29] = "\\u001d";
- expectedNullChars[30] = "\\u001e";
- expectedNullChars[31] = "\\u001f";
+var expectedNullChars = new Array();
+expectedNullChars[0] = "\\u0000";
+expectedNullChars[1] = "\\u0001";
+expectedNullChars[2] = "\\u0002";
+expectedNullChars[3] = "\\u0003";
+expectedNullChars[4] = "\\u0004";
+expectedNullChars[5] = "\\u0005";
+expectedNullChars[6] = "\\u0006";
+expectedNullChars[7] = "\\u0007";
+expectedNullChars[8] = "\\b";
+expectedNullChars[9] = "\\t";
+expectedNullChars[10] = "\\n";
+expectedNullChars[11] = "\\u000b";
+expectedNullChars[12] = "\\f";
+expectedNullChars[13] = "\\r";
+expectedNullChars[14] = "\\u000e";
+expectedNullChars[15] = "\\u000f";
+expectedNullChars[16] = "\\u0010";
+expectedNullChars[17] = "\\u0011";
+expectedNullChars[18] = "\\u0012";
+expectedNullChars[19] = "\\u0013";
+expectedNullChars[20] = "\\u0014";
+expectedNullChars[21] = "\\u0015";
+expectedNullChars[22] = "\\u0016";
+expectedNullChars[23] = "\\u0017";
+expectedNullChars[24] = "\\u0018";
+expectedNullChars[25] = "\\u0019";
+expectedNullChars[26] = "\\u001a";
+expectedNullChars[27] = "\\u001b";
+expectedNullChars[28] = "\\u001c";
+expectedNullChars[29] = "\\u001d";
+expectedNullChars[30] = "\\u001e";
+expectedNullChars[31] = "\\u001f";
- for (var index in expectedNullChars) {
+for (var index in expectedNullChars) {
- var str = JSON.stringify({ "na\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001Fme": "John" });
- result = (result && str.indexOf(expectedNullChars[index]) !== -1);
- }
+ var str = JSON.stringify({
+ "na\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001Fme": "John"
+ });
+ result = (result && str.indexOf(expectedNullChars[index]) !== -1);
+}
assert(result, 'result !== true');
diff --git a/test/built-ins/JSON/stringify/15.12.3-11-21.js b/test/built-ins/JSON/stringify/15.12.3-11-21.js
index e22b848cc..ca7e598d6 100644
--- a/test/built-ins/JSON/stringify/15.12.3-11-21.js
+++ b/test/built-ins/JSON/stringify/15.12.3-11-21.js
@@ -9,46 +9,48 @@ description: >
Quote(value) step 2.c)
---*/
- var result = true;
+var result = true;
- var expectedNullChars = new Array();
- expectedNullChars[0] = "\\u0000";
- expectedNullChars[1] = "\\u0001";
- expectedNullChars[2] = "\\u0002";
- expectedNullChars[3] = "\\u0003";
- expectedNullChars[4] = "\\u0004";
- expectedNullChars[5] = "\\u0005";
- expectedNullChars[6] = "\\u0006";
- expectedNullChars[7] = "\\u0007";
- expectedNullChars[8] = "\\b";
- expectedNullChars[9] = "\\t";
- expectedNullChars[10] = "\\n";
- expectedNullChars[11] = "\\u000b";
- expectedNullChars[12] = "\\f";
- expectedNullChars[13] = "\\r";
- expectedNullChars[14] = "\\u000e";
- expectedNullChars[15] = "\\u000f";
- expectedNullChars[16] = "\\u0010";
- expectedNullChars[17] = "\\u0011";
- expectedNullChars[18] = "\\u0012";
- expectedNullChars[19] = "\\u0013";
- expectedNullChars[20] = "\\u0014";
- expectedNullChars[21] = "\\u0015";
- expectedNullChars[22] = "\\u0016";
- expectedNullChars[23] = "\\u0017";
- expectedNullChars[24] = "\\u0018";
- expectedNullChars[25] = "\\u0019";
- expectedNullChars[26] = "\\u001a";
- expectedNullChars[27] = "\\u001b";
- expectedNullChars[28] = "\\u001c";
- expectedNullChars[29] = "\\u001d";
- expectedNullChars[30] = "\\u001e";
- expectedNullChars[31] = "\\u001f";
+var expectedNullChars = new Array();
+expectedNullChars[0] = "\\u0000";
+expectedNullChars[1] = "\\u0001";
+expectedNullChars[2] = "\\u0002";
+expectedNullChars[3] = "\\u0003";
+expectedNullChars[4] = "\\u0004";
+expectedNullChars[5] = "\\u0005";
+expectedNullChars[6] = "\\u0006";
+expectedNullChars[7] = "\\u0007";
+expectedNullChars[8] = "\\b";
+expectedNullChars[9] = "\\t";
+expectedNullChars[10] = "\\n";
+expectedNullChars[11] = "\\u000b";
+expectedNullChars[12] = "\\f";
+expectedNullChars[13] = "\\r";
+expectedNullChars[14] = "\\u000e";
+expectedNullChars[15] = "\\u000f";
+expectedNullChars[16] = "\\u0010";
+expectedNullChars[17] = "\\u0011";
+expectedNullChars[18] = "\\u0012";
+expectedNullChars[19] = "\\u0013";
+expectedNullChars[20] = "\\u0014";
+expectedNullChars[21] = "\\u0015";
+expectedNullChars[22] = "\\u0016";
+expectedNullChars[23] = "\\u0017";
+expectedNullChars[24] = "\\u0018";
+expectedNullChars[25] = "\\u0019";
+expectedNullChars[26] = "\\u001a";
+expectedNullChars[27] = "\\u001b";
+expectedNullChars[28] = "\\u001c";
+expectedNullChars[29] = "\\u001d";
+expectedNullChars[30] = "\\u001e";
+expectedNullChars[31] = "\\u001f";
- for (var index in expectedNullChars) {
+for (var index in expectedNullChars) {
- var str = JSON.stringify({ "name": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F" });
- result = (result && str.indexOf(expectedNullChars[index]) !== -1);
- }
+ var str = JSON.stringify({
+ "name": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F"
+ });
+ result = (result && str.indexOf(expectedNullChars[index]) !== -1);
+}
assert(result, 'result !== true');
diff --git a/test/built-ins/JSON/stringify/15.12.3-11-22.js b/test/built-ins/JSON/stringify/15.12.3-11-22.js
index 238b6c35f..eec132500 100644
--- a/test/built-ins/JSON/stringify/15.12.3-11-22.js
+++ b/test/built-ins/JSON/stringify/15.12.3-11-22.js
@@ -9,46 +9,48 @@ description: >
operation Quote(value) step 2.c)
---*/
- var result = true;
+var result = true;
- var expectedNullChars = new Array();
- expectedNullChars[0] = "\\u0000";
- expectedNullChars[1] = "\\u0001";
- expectedNullChars[2] = "\\u0002";
- expectedNullChars[3] = "\\u0003";
- expectedNullChars[4] = "\\u0004";
- expectedNullChars[5] = "\\u0005";
- expectedNullChars[6] = "\\u0006";
- expectedNullChars[7] = "\\u0007";
- expectedNullChars[8] = "\\b";
- expectedNullChars[9] = "\\t";
- expectedNullChars[10] = "\\n";
- expectedNullChars[11] = "\\u000b";
- expectedNullChars[12] = "\\f";
- expectedNullChars[13] = "\\r";
- expectedNullChars[14] = "\\u000e";
- expectedNullChars[15] = "\\u000f";
- expectedNullChars[16] = "\\u0010";
- expectedNullChars[17] = "\\u0011";
- expectedNullChars[18] = "\\u0012";
- expectedNullChars[19] = "\\u0013";
- expectedNullChars[20] = "\\u0014";
- expectedNullChars[21] = "\\u0015";
- expectedNullChars[22] = "\\u0016";
- expectedNullChars[23] = "\\u0017";
- expectedNullChars[24] = "\\u0018";
- expectedNullChars[25] = "\\u0019";
- expectedNullChars[26] = "\\u001a";
- expectedNullChars[27] = "\\u001b";
- expectedNullChars[28] = "\\u001c";
- expectedNullChars[29] = "\\u001d";
- expectedNullChars[30] = "\\u001e";
- expectedNullChars[31] = "\\u001f";
+var expectedNullChars = new Array();
+expectedNullChars[0] = "\\u0000";
+expectedNullChars[1] = "\\u0001";
+expectedNullChars[2] = "\\u0002";
+expectedNullChars[3] = "\\u0003";
+expectedNullChars[4] = "\\u0004";
+expectedNullChars[5] = "\\u0005";
+expectedNullChars[6] = "\\u0006";
+expectedNullChars[7] = "\\u0007";
+expectedNullChars[8] = "\\b";
+expectedNullChars[9] = "\\t";
+expectedNullChars[10] = "\\n";
+expectedNullChars[11] = "\\u000b";
+expectedNullChars[12] = "\\f";
+expectedNullChars[13] = "\\r";
+expectedNullChars[14] = "\\u000e";
+expectedNullChars[15] = "\\u000f";
+expectedNullChars[16] = "\\u0010";
+expectedNullChars[17] = "\\u0011";
+expectedNullChars[18] = "\\u0012";
+expectedNullChars[19] = "\\u0013";
+expectedNullChars[20] = "\\u0014";
+expectedNullChars[21] = "\\u0015";
+expectedNullChars[22] = "\\u0016";
+expectedNullChars[23] = "\\u0017";
+expectedNullChars[24] = "\\u0018";
+expectedNullChars[25] = "\\u0019";
+expectedNullChars[26] = "\\u001a";
+expectedNullChars[27] = "\\u001b";
+expectedNullChars[28] = "\\u001c";
+expectedNullChars[29] = "\\u001d";
+expectedNullChars[30] = "\\u001e";
+expectedNullChars[31] = "\\u001f";
- for (var index in expectedNullChars) {
+for (var index in expectedNullChars) {
- var str = JSON.stringify({ "name": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001FJohn" });
- result = (result && str.indexOf(expectedNullChars[index]) !== -1);
- }
+ var str = JSON.stringify({
+ "name": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001FJohn"
+ });
+ result = (result && str.indexOf(expectedNullChars[index]) !== -1);
+}
assert(result, 'result !== true');
diff --git a/test/built-ins/JSON/stringify/15.12.3-11-23.js b/test/built-ins/JSON/stringify/15.12.3-11-23.js
index c19435273..982968f34 100644
--- a/test/built-ins/JSON/stringify/15.12.3-11-23.js
+++ b/test/built-ins/JSON/stringify/15.12.3-11-23.js
@@ -9,46 +9,48 @@ description: >
Quote(value) step 2.c)
---*/
- var result = true;
+var result = true;
- var expectedNullChars = new Array();
- expectedNullChars[0] = "\\u0000";
- expectedNullChars[1] = "\\u0001";
- expectedNullChars[2] = "\\u0002";
- expectedNullChars[3] = "\\u0003";
- expectedNullChars[4] = "\\u0004";
- expectedNullChars[5] = "\\u0005";
- expectedNullChars[6] = "\\u0006";
- expectedNullChars[7] = "\\u0007";
- expectedNullChars[8] = "\\b";
- expectedNullChars[9] = "\\t";
- expectedNullChars[10] = "\\n";
- expectedNullChars[11] = "\\u000b";
- expectedNullChars[12] = "\\f";
- expectedNullChars[13] = "\\r";
- expectedNullChars[14] = "\\u000e";
- expectedNullChars[15] = "\\u000f";
- expectedNullChars[16] = "\\u0010";
- expectedNullChars[17] = "\\u0011";
- expectedNullChars[18] = "\\u0012";
- expectedNullChars[19] = "\\u0013";
- expectedNullChars[20] = "\\u0014";
- expectedNullChars[21] = "\\u0015";
- expectedNullChars[22] = "\\u0016";
- expectedNullChars[23] = "\\u0017";
- expectedNullChars[24] = "\\u0018";
- expectedNullChars[25] = "\\u0019";
- expectedNullChars[26] = "\\u001a";
- expectedNullChars[27] = "\\u001b";
- expectedNullChars[28] = "\\u001c";
- expectedNullChars[29] = "\\u001d";
- expectedNullChars[30] = "\\u001e";
- expectedNullChars[31] = "\\u001f";
+var expectedNullChars = new Array();
+expectedNullChars[0] = "\\u0000";
+expectedNullChars[1] = "\\u0001";
+expectedNullChars[2] = "\\u0002";
+expectedNullChars[3] = "\\u0003";
+expectedNullChars[4] = "\\u0004";
+expectedNullChars[5] = "\\u0005";
+expectedNullChars[6] = "\\u0006";
+expectedNullChars[7] = "\\u0007";
+expectedNullChars[8] = "\\b";
+expectedNullChars[9] = "\\t";
+expectedNullChars[10] = "\\n";
+expectedNullChars[11] = "\\u000b";
+expectedNullChars[12] = "\\f";
+expectedNullChars[13] = "\\r";
+expectedNullChars[14] = "\\u000e";
+expectedNullChars[15] = "\\u000f";
+expectedNullChars[16] = "\\u0010";
+expectedNullChars[17] = "\\u0011";
+expectedNullChars[18] = "\\u0012";
+expectedNullChars[19] = "\\u0013";
+expectedNullChars[20] = "\\u0014";
+expectedNullChars[21] = "\\u0015";
+expectedNullChars[22] = "\\u0016";
+expectedNullChars[23] = "\\u0017";
+expectedNullChars[24] = "\\u0018";
+expectedNullChars[25] = "\\u0019";
+expectedNullChars[26] = "\\u001a";
+expectedNullChars[27] = "\\u001b";
+expectedNullChars[28] = "\\u001c";
+expectedNullChars[29] = "\\u001d";
+expectedNullChars[30] = "\\u001e";
+expectedNullChars[31] = "\\u001f";
- for (var index in expectedNullChars) {
+for (var index in expectedNullChars) {
- var str = JSON.stringify({ "name": "John\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F" });
- result = (result && str.indexOf(expectedNullChars[index]) !== -1);
- }
+ var str = JSON.stringify({
+ "name": "John\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F"
+ });
+ result = (result && str.indexOf(expectedNullChars[index]) !== -1);
+}
assert(result, 'result !== true');
diff --git a/test/built-ins/JSON/stringify/15.12.3-11-24.js b/test/built-ins/JSON/stringify/15.12.3-11-24.js
index 17a9c9631..3fc4140a2 100644
--- a/test/built-ins/JSON/stringify/15.12.3-11-24.js
+++ b/test/built-ins/JSON/stringify/15.12.3-11-24.js
@@ -9,46 +9,48 @@ description: >
operation Quote(value) step 2.c)
---*/
- var result = true;
+var result = true;
- var expectedNullChars = new Array();
- expectedNullChars[0] = "\\u0000";
- expectedNullChars[1] = "\\u0001";
- expectedNullChars[2] = "\\u0002";
- expectedNullChars[3] = "\\u0003";
- expectedNullChars[4] = "\\u0004";
- expectedNullChars[5] = "\\u0005";
- expectedNullChars[6] = "\\u0006";
- expectedNullChars[7] = "\\u0007";
- expectedNullChars[8] = "\\b";
- expectedNullChars[9] = "\\t";
- expectedNullChars[10] = "\\n";
- expectedNullChars[11] = "\\u000b";
- expectedNullChars[12] = "\\f";
- expectedNullChars[13] = "\\r";
- expectedNullChars[14] = "\\u000e";
- expectedNullChars[15] = "\\u000f";
- expectedNullChars[16] = "\\u0010";
- expectedNullChars[17] = "\\u0011";
- expectedNullChars[18] = "\\u0012";
- expectedNullChars[19] = "\\u0013";
- expectedNullChars[20] = "\\u0014";
- expectedNullChars[21] = "\\u0015";
- expectedNullChars[22] = "\\u0016";
- expectedNullChars[23] = "\\u0017";
- expectedNullChars[24] = "\\u0018";
- expectedNullChars[25] = "\\u0019";
- expectedNullChars[26] = "\\u001a";
- expectedNullChars[27] = "\\u001b";
- expectedNullChars[28] = "\\u001c";
- expectedNullChars[29] = "\\u001d";
- expectedNullChars[30] = "\\u001e";
- expectedNullChars[31] = "\\u001f";
+var expectedNullChars = new Array();
+expectedNullChars[0] = "\\u0000";
+expectedNullChars[1] = "\\u0001";
+expectedNullChars[2] = "\\u0002";
+expectedNullChars[3] = "\\u0003";
+expectedNullChars[4] = "\\u0004";
+expectedNullChars[5] = "\\u0005";
+expectedNullChars[6] = "\\u0006";
+expectedNullChars[7] = "\\u0007";
+expectedNullChars[8] = "\\b";
+expectedNullChars[9] = "\\t";
+expectedNullChars[10] = "\\n";
+expectedNullChars[11] = "\\u000b";
+expectedNullChars[12] = "\\f";
+expectedNullChars[13] = "\\r";
+expectedNullChars[14] = "\\u000e";
+expectedNullChars[15] = "\\u000f";
+expectedNullChars[16] = "\\u0010";
+expectedNullChars[17] = "\\u0011";
+expectedNullChars[18] = "\\u0012";
+expectedNullChars[19] = "\\u0013";
+expectedNullChars[20] = "\\u0014";
+expectedNullChars[21] = "\\u0015";
+expectedNullChars[22] = "\\u0016";
+expectedNullChars[23] = "\\u0017";
+expectedNullChars[24] = "\\u0018";
+expectedNullChars[25] = "\\u0019";
+expectedNullChars[26] = "\\u001a";
+expectedNullChars[27] = "\\u001b";
+expectedNullChars[28] = "\\u001c";
+expectedNullChars[29] = "\\u001d";
+expectedNullChars[30] = "\\u001e";
+expectedNullChars[31] = "\\u001f";
- for (var index in expectedNullChars) {
+for (var index in expectedNullChars) {
- var str = JSON.stringify({ "name": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001FJohn\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F" });
- result = (result && str.indexOf(expectedNullChars[index]) !== -1 && str.indexOf(expectedNullChars[index]) !== -1);
- }
+ var str = JSON.stringify({
+ "name": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001FJohn\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F"
+ });
+ result = (result && str.indexOf(expectedNullChars[index]) !== -1 && str.indexOf(expectedNullChars[index]) !== -1);
+}
assert(result, 'result !== true');
diff --git a/test/built-ins/JSON/stringify/15.12.3-11-25.js b/test/built-ins/JSON/stringify/15.12.3-11-25.js
index 146d71200..9a26fa418 100644
--- a/test/built-ins/JSON/stringify/15.12.3-11-25.js
+++ b/test/built-ins/JSON/stringify/15.12.3-11-25.js
@@ -9,46 +9,48 @@ description: >
operation Quote(value) step 2.c)
---*/
- var result = true;
+var result = true;
- var expectedNullChars = new Array();
- expectedNullChars[0] = "\\u0000";
- expectedNullChars[1] = "\\u0001";
- expectedNullChars[2] = "\\u0002";
- expectedNullChars[3] = "\\u0003";
- expectedNullChars[4] = "\\u0004";
- expectedNullChars[5] = "\\u0005";
- expectedNullChars[6] = "\\u0006";
- expectedNullChars[7] = "\\u0007";
- expectedNullChars[8] = "\\b";
- expectedNullChars[9] = "\\t";
- expectedNullChars[10] = "\\n";
- expectedNullChars[11] = "\\u000b";
- expectedNullChars[12] = "\\f";
- expectedNullChars[13] = "\\r";
- expectedNullChars[14] = "\\u000e";
- expectedNullChars[15] = "\\u000f";
- expectedNullChars[16] = "\\u0010";
- expectedNullChars[17] = "\\u0011";
- expectedNullChars[18] = "\\u0012";
- expectedNullChars[19] = "\\u0013";
- expectedNullChars[20] = "\\u0014";
- expectedNullChars[21] = "\\u0015";
- expectedNullChars[22] = "\\u0016";
- expectedNullChars[23] = "\\u0017";
- expectedNullChars[24] = "\\u0018";
- expectedNullChars[25] = "\\u0019";
- expectedNullChars[26] = "\\u001a";
- expectedNullChars[27] = "\\u001b";
- expectedNullChars[28] = "\\u001c";
- expectedNullChars[29] = "\\u001d";
- expectedNullChars[30] = "\\u001e";
- expectedNullChars[31] = "\\u001f";
+var expectedNullChars = new Array();
+expectedNullChars[0] = "\\u0000";
+expectedNullChars[1] = "\\u0001";
+expectedNullChars[2] = "\\u0002";
+expectedNullChars[3] = "\\u0003";
+expectedNullChars[4] = "\\u0004";
+expectedNullChars[5] = "\\u0005";
+expectedNullChars[6] = "\\u0006";
+expectedNullChars[7] = "\\u0007";
+expectedNullChars[8] = "\\b";
+expectedNullChars[9] = "\\t";
+expectedNullChars[10] = "\\n";
+expectedNullChars[11] = "\\u000b";
+expectedNullChars[12] = "\\f";
+expectedNullChars[13] = "\\r";
+expectedNullChars[14] = "\\u000e";
+expectedNullChars[15] = "\\u000f";
+expectedNullChars[16] = "\\u0010";
+expectedNullChars[17] = "\\u0011";
+expectedNullChars[18] = "\\u0012";
+expectedNullChars[19] = "\\u0013";
+expectedNullChars[20] = "\\u0014";
+expectedNullChars[21] = "\\u0015";
+expectedNullChars[22] = "\\u0016";
+expectedNullChars[23] = "\\u0017";
+expectedNullChars[24] = "\\u0018";
+expectedNullChars[25] = "\\u0019";
+expectedNullChars[26] = "\\u001a";
+expectedNullChars[27] = "\\u001b";
+expectedNullChars[28] = "\\u001c";
+expectedNullChars[29] = "\\u001d";
+expectedNullChars[30] = "\\u001e";
+expectedNullChars[31] = "\\u001f";
- for (var index in expectedNullChars) {
+for (var index in expectedNullChars) {
- var str = JSON.stringify({ "name": "Jo\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001Fhn" });
- result = (result && str.indexOf(expectedNullChars[index]) !== -1 && str.indexOf(expectedNullChars[index]) !== -1);
- }
+ var str = JSON.stringify({
+ "name": "Jo\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001Fhn"
+ });
+ result = (result && str.indexOf(expectedNullChars[index]) !== -1 && str.indexOf(expectedNullChars[index]) !== -1);
+}
assert(result, 'result !== true');
diff --git a/test/built-ins/JSON/stringify/15.12.3-11-26.js b/test/built-ins/JSON/stringify/15.12.3-11-26.js
index a04f354a0..142160ce5 100644
--- a/test/built-ins/JSON/stringify/15.12.3-11-26.js
+++ b/test/built-ins/JSON/stringify/15.12.3-11-26.js
@@ -8,11 +8,11 @@ description: >
abstract operation JA(value) step 10.b.iii)
---*/
- var arrObj = [];
- arrObj[0] = "a";
- arrObj[1] = "b";
- arrObj[2] = "c";
+var arrObj = [];
+arrObj[0] = "a";
+arrObj[1] = "b";
+arrObj[2] = "c";
- var jsonText = JSON.stringify(arrObj, undefined, "").toString();
+var jsonText = JSON.stringify(arrObj, undefined, "").toString();
assert.sameValue(jsonText.charAt(jsonText.length - 1), "]", 'jsonText.charAt(jsonText.length - 1)');
diff --git a/test/built-ins/JSON/stringify/15.12.3-4-1.js b/test/built-ins/JSON/stringify/15.12.3-4-1.js
index 0f7eafd11..d68148698 100644
--- a/test/built-ins/JSON/stringify/15.12.3-4-1.js
+++ b/test/built-ins/JSON/stringify/15.12.3-4-1.js
@@ -8,4 +8,4 @@ description: >
or arrays..
---*/
-assert.sameValue(JSON.stringify([42],{}), '[42]', 'JSON.stringify([42],{})');
+assert.sameValue(JSON.stringify([42], {}), '[42]', 'JSON.stringify([42],{})');
diff --git a/test/built-ins/JSON/stringify/15.12.3-5-a-i-1.js b/test/built-ins/JSON/stringify/15.12.3-5-a-i-1.js
index 719f653c9..0304b03c2 100644
--- a/test/built-ins/JSON/stringify/15.12.3-5-a-i-1.js
+++ b/test/built-ins/JSON/stringify/15.12.3-5-a-i-1.js
@@ -8,6 +8,15 @@ description: >
Number values
---*/
- var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'};
+var obj = {
+ a1: {
+ b1: [1, 2, 3, 4],
+ b2: {
+ c1: 1,
+ c2: 2
+ }
+ },
+ a2: 'a2'
+};
-assert.sameValue(JSON.stringify(obj,null, new Number(5)), JSON.stringify(obj,null, 5), 'JSON.stringify(obj,null, new Number(5))');
+assert.sameValue(JSON.stringify(obj, null, new Number(5)), JSON.stringify(obj, null, 5), 'JSON.stringify(obj,null, new Number(5))');
diff --git a/test/built-ins/JSON/stringify/15.12.3-5-b-i-1.js b/test/built-ins/JSON/stringify/15.12.3-5-b-i-1.js
index 034123aec..baf3d06f5 100644
--- a/test/built-ins/JSON/stringify/15.12.3-5-b-i-1.js
+++ b/test/built-ins/JSON/stringify/15.12.3-5-b-i-1.js
@@ -8,6 +8,15 @@ description: >
String values
---*/
- var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'};
+var obj = {
+ a1: {
+ b1: [1, 2, 3, 4],
+ b2: {
+ c1: 1,
+ c2: 2
+ }
+ },
+ a2: 'a2'
+};
-assert.sameValue(JSON.stringify(obj,null, new String('xxx')), JSON.stringify(obj,null, 'xxx'), 'JSON.stringify(obj,null, new String("xxx"))');
+assert.sameValue(JSON.stringify(obj, null, new String('xxx')), JSON.stringify(obj, null, 'xxx'), 'JSON.stringify(obj,null, new String("xxx"))');
diff --git a/test/built-ins/JSON/stringify/15.12.3-6-a-1.js b/test/built-ins/JSON/stringify/15.12.3-6-a-1.js
index fd0d4ded4..2d7e6386f 100644
--- a/test/built-ins/JSON/stringify/15.12.3-6-a-1.js
+++ b/test/built-ins/JSON/stringify/15.12.3-6-a-1.js
@@ -8,6 +8,15 @@ description: >
same as a space argument of 10.
---*/
- var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'};
+var obj = {
+ a1: {
+ b1: [1, 2, 3, 4],
+ b2: {
+ c1: 1,
+ c2: 2
+ }
+ },
+ a2: 'a2'
+};
-assert.sameValue(JSON.stringify(obj,null, 10), JSON.stringify(obj,null, 100), 'JSON.stringify(obj,null, 10)');
+assert.sameValue(JSON.stringify(obj, null, 10), JSON.stringify(obj, null, 100), 'JSON.stringify(obj,null, 10)');
diff --git a/test/built-ins/JSON/stringify/15.12.3-6-a-2.js b/test/built-ins/JSON/stringify/15.12.3-6-a-2.js
index 1cfe50a80..16349f1f3 100644
--- a/test/built-ins/JSON/stringify/15.12.3-6-a-2.js
+++ b/test/built-ins/JSON/stringify/15.12.3-6-a-2.js
@@ -8,6 +8,15 @@ description: >
their integer part.
---*/
- var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'};
+var obj = {
+ a1: {
+ b1: [1, 2, 3, 4],
+ b2: {
+ c1: 1,
+ c2: 2
+ }
+ },
+ a2: 'a2'
+};
-assert.sameValue(JSON.stringify(obj,null, 5.99999), JSON.stringify(obj,null, 5), 'JSON.stringify(obj,null, 5.99999)');
+assert.sameValue(JSON.stringify(obj, null, 5.99999), JSON.stringify(obj, null, 5), 'JSON.stringify(obj,null, 5.99999)');
diff --git a/test/built-ins/JSON/stringify/15.12.3-6-b-1.js b/test/built-ins/JSON/stringify/15.12.3-6-b-1.js
index d5eea1024..d178f1eef 100644
--- a/test/built-ins/JSON/stringify/15.12.3-6-b-1.js
+++ b/test/built-ins/JSON/stringify/15.12.3-6-b-1.js
@@ -8,7 +8,16 @@ description: >
(0.999999)the same as empty string space argument.
---*/
- var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'};
+var obj = {
+ a1: {
+ b1: [1, 2, 3, 4],
+ b2: {
+ c1: 1,
+ c2: 2
+ }
+ },
+ a2: 'a2'
+};
/* empty string should be same as no space arg */
-assert.sameValue(JSON.stringify(obj,null, 0.999999), JSON.stringify(obj));
+assert.sameValue(JSON.stringify(obj, null, 0.999999), JSON.stringify(obj));
diff --git a/test/built-ins/JSON/stringify/15.12.3-6-b-2.js b/test/built-ins/JSON/stringify/15.12.3-6-b-2.js
index d1bf8401b..504e939e6 100644
--- a/test/built-ins/JSON/stringify/15.12.3-6-b-2.js
+++ b/test/built-ins/JSON/stringify/15.12.3-6-b-2.js
@@ -8,7 +8,16 @@ description: >
same as empty string space argument.
---*/
- var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'};
+var obj = {
+ a1: {
+ b1: [1, 2, 3, 4],
+ b2: {
+ c1: 1,
+ c2: 2
+ }
+ },
+ a2: 'a2'
+};
/* empty string should be same as no space arg */
-assert.sameValue(JSON.stringify(obj,null, 0), JSON.stringify(obj));
+assert.sameValue(JSON.stringify(obj, null, 0), JSON.stringify(obj));
diff --git a/test/built-ins/JSON/stringify/15.12.3-6-b-3.js b/test/built-ins/JSON/stringify/15.12.3-6-b-3.js
index 9310f9470..92db3c825 100644
--- a/test/built-ins/JSON/stringify/15.12.3-6-b-3.js
+++ b/test/built-ins/JSON/stringify/15.12.3-6-b-3.js
@@ -8,7 +8,16 @@ description: >
same as empty string space argument.
---*/
- var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'};
+var obj = {
+ a1: {
+ b1: [1, 2, 3, 4],
+ b2: {
+ c1: 1,
+ c2: 2
+ }
+ },
+ a2: 'a2'
+};
- /* empty string should be same as no space arg */
- assert.sameValue(JSON.stringify(obj,null, -5), JSON.stringify(obj));
+/* empty string should be same as no space arg */
+assert.sameValue(JSON.stringify(obj, null, -5), JSON.stringify(obj));
diff --git a/test/built-ins/JSON/stringify/15.12.3-6-b-4.js b/test/built-ins/JSON/stringify/15.12.3-6-b-4.js
index de0330367..e492e43a3 100644
--- a/test/built-ins/JSON/stringify/15.12.3-6-b-4.js
+++ b/test/built-ins/JSON/stringify/15.12.3-6-b-4.js
@@ -8,8 +8,17 @@ description: >
is equivalent to a string of spaces of that length.
---*/
- var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'};
- var fiveSpaces = ' ';
- // '12345'
+var obj = {
+ a1: {
+ b1: [1, 2, 3, 4],
+ b2: {
+ c1: 1,
+ c2: 2
+ }
+ },
+ a2: 'a2'
+};
+var fiveSpaces = ' ';
+// '12345'
-assert.sameValue(JSON.stringify(obj,null, 5), JSON.stringify(obj, null, fiveSpaces), 'JSON.stringify(obj,null, 5)');
+assert.sameValue(JSON.stringify(obj, null, 5), JSON.stringify(obj, null, fiveSpaces), 'JSON.stringify(obj,null, 5)');
diff --git a/test/built-ins/JSON/stringify/15.12.3-7-a-1.js b/test/built-ins/JSON/stringify/15.12.3-7-a-1.js
index e16a25e6f..fd579d854 100644
--- a/test/built-ins/JSON/stringify/15.12.3-7-a-1.js
+++ b/test/built-ins/JSON/stringify/15.12.3-7-a-1.js
@@ -8,6 +8,15 @@ description: >
arguments.
---*/
- var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'};
+var obj = {
+ a1: {
+ b1: [1, 2, 3, 4],
+ b2: {
+ c1: 1,
+ c2: 2
+ }
+ },
+ a2: 'a2'
+};
-assert.sameValue(JSON.stringify(obj,null, '0123456789xxxxxxxxx'), JSON.stringify(obj,null, '0123456789'), 'JSON.stringify(obj,null, "0123456789xxxxxxxxx")');
+assert.sameValue(JSON.stringify(obj, null, '0123456789xxxxxxxxx'), JSON.stringify(obj, null, '0123456789'), 'JSON.stringify(obj,null, "0123456789xxxxxxxxx")');
diff --git a/test/built-ins/JSON/stringify/15.12.3-8-a-1.js b/test/built-ins/JSON/stringify/15.12.3-8-a-1.js
index c95e950e6..7fc0583f6 100644
--- a/test/built-ins/JSON/stringify/15.12.3-8-a-1.js
+++ b/test/built-ins/JSON/stringify/15.12.3-8-a-1.js
@@ -8,6 +8,15 @@ description: >
missing space argument.
---*/
- var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'};
+var obj = {
+ a1: {
+ b1: [1, 2, 3, 4],
+ b2: {
+ c1: 1,
+ c2: 2
+ }
+ },
+ a2: 'a2'
+};
-assert.sameValue(JSON.stringify(obj), JSON.stringify(obj,null, ''), 'JSON.stringify(obj)');
+assert.sameValue(JSON.stringify(obj), JSON.stringify(obj, null, ''), 'JSON.stringify(obj)');
diff --git a/test/built-ins/JSON/stringify/15.12.3-8-a-2.js b/test/built-ins/JSON/stringify/15.12.3-8-a-2.js
index 0443eb753..eacd51d52 100644
--- a/test/built-ins/JSON/stringify/15.12.3-8-a-2.js
+++ b/test/built-ins/JSON/stringify/15.12.3-8-a-2.js
@@ -8,6 +8,15 @@ description: >
missing space argument.
---*/
- var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'};
+var obj = {
+ a1: {
+ b1: [1, 2, 3, 4],
+ b2: {
+ c1: 1,
+ c2: 2
+ }
+ },
+ a2: 'a2'
+};
-assert.sameValue(JSON.stringify(obj), JSON.stringify(obj,null, true), 'JSON.stringify(obj)');
+assert.sameValue(JSON.stringify(obj), JSON.stringify(obj, null, true), 'JSON.stringify(obj)');
diff --git a/test/built-ins/JSON/stringify/15.12.3-8-a-3.js b/test/built-ins/JSON/stringify/15.12.3-8-a-3.js
index 6d4bc3eb8..072eb9d53 100644
--- a/test/built-ins/JSON/stringify/15.12.3-8-a-3.js
+++ b/test/built-ins/JSON/stringify/15.12.3-8-a-3.js
@@ -8,6 +8,15 @@ description: >
space argument.
---*/
- var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'};
+var obj = {
+ a1: {
+ b1: [1, 2, 3, 4],
+ b2: {
+ c1: 1,
+ c2: 2
+ }
+ },
+ a2: 'a2'
+};
-assert.sameValue(JSON.stringify(obj), JSON.stringify(obj,null, null), 'JSON.stringify(obj)');
+assert.sameValue(JSON.stringify(obj), JSON.stringify(obj, null, null), 'JSON.stringify(obj)');
diff --git a/test/built-ins/JSON/stringify/15.12.3-8-a-4.js b/test/built-ins/JSON/stringify/15.12.3-8-a-4.js
index d13b9c5c8..7ac1a28ec 100644
--- a/test/built-ins/JSON/stringify/15.12.3-8-a-4.js
+++ b/test/built-ins/JSON/stringify/15.12.3-8-a-4.js
@@ -8,6 +8,15 @@ description: >
as a missing space argument.
---*/
- var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'};
+var obj = {
+ a1: {
+ b1: [1, 2, 3, 4],
+ b2: {
+ c1: 1,
+ c2: 2
+ }
+ },
+ a2: 'a2'
+};
-assert.sameValue(JSON.stringify(obj), JSON.stringify(obj,null, new Boolean(true)), 'JSON.stringify(obj)');
+assert.sameValue(JSON.stringify(obj), JSON.stringify(obj, null, new Boolean(true)), 'JSON.stringify(obj)');
diff --git a/test/built-ins/JSON/stringify/15.12.3-8-a-5.js b/test/built-ins/JSON/stringify/15.12.3-8-a-5.js
index 56532c4ec..4f05d178f 100644
--- a/test/built-ins/JSON/stringify/15.12.3-8-a-5.js
+++ b/test/built-ins/JSON/stringify/15.12.3-8-a-5.js
@@ -8,6 +8,15 @@ description: >
the same as a missing space argument.
---*/
- var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'};
+var obj = {
+ a1: {
+ b1: [1, 2, 3, 4],
+ b2: {
+ c1: 1,
+ c2: 2
+ }
+ },
+ a2: 'a2'
+};
-assert.sameValue(JSON.stringify(obj), JSON.stringify(obj,null, obj), 'JSON.stringify(obj)');
+assert.sameValue(JSON.stringify(obj), JSON.stringify(obj, null, obj), 'JSON.stringify(obj)');
diff --git a/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-1.js b/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-1.js
index 6f6fa62da..447652a8b 100644
--- a/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-1.js
+++ b/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-1.js
@@ -8,9 +8,11 @@ description: >
toJSON call to literal strings.
---*/
- var obj = {
- prop:42,
- toJSON: function () {return 'fortytwo objects'}
- };
+var obj = {
+ prop: 42,
+ toJSON: function() {
+ return 'fortytwo objects'
+ }
+};
assert.sameValue(JSON.stringify([obj]), '["fortytwo objects"]', 'JSON.stringify([obj])');
diff --git a/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-2.js b/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-2.js
index b665d8004..aa418fefd 100644
--- a/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-2.js
+++ b/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-2.js
@@ -8,9 +8,11 @@ description: >
toJSON call to literal Number.
---*/
- var obj = {
- prop:42,
- toJSON: function () {return new Number(42)}
- };
+var obj = {
+ prop: 42,
+ toJSON: function() {
+ return new Number(42)
+ }
+};
assert.sameValue(JSON.stringify([obj]), '[42]', 'JSON.stringify([obj])');
diff --git a/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-3.js b/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-3.js
index 9a192f26c..6f4eaccdf 100644
--- a/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-3.js
+++ b/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-3.js
@@ -8,9 +8,11 @@ description: >
toJSON call to literal Boolean values.
---*/
- var obj = {
- prop:42,
- toJSON: function () {return new Boolean(true)}
- };
+var obj = {
+ prop: 42,
+ toJSON: function() {
+ return new Boolean(true)
+ }
+};
assert.sameValue(JSON.stringify([obj]), '[true]', 'JSON.stringify([obj])');
diff --git a/test/built-ins/JSON/stringify/15.12.3_2-3-a-1.js b/test/built-ins/JSON/stringify/15.12.3_2-3-a-1.js
index 853acb01d..aefb5d77c 100644
--- a/test/built-ins/JSON/stringify/15.12.3_2-3-a-1.js
+++ b/test/built-ins/JSON/stringify/15.12.3_2-3-a-1.js
@@ -8,4 +8,6 @@ description: >
replacer functions to literal strings.
---*/
-assert.sameValue(JSON.stringify([42], function(k,v) {return v===42? new String('fortytwo'):v}), '["fortytwo"]', 'JSON.stringify([42], function(k,v) {return v===42? new String("fortytwo"):v})');
+assert.sameValue(JSON.stringify([42], function(k, v) {
+ return v === 42 ? new String('fortytwo') : v
+}), '["fortytwo"]', 'JSON.stringify([42], function(k,v) {return v===42? new String("fortytwo"):v})');
diff --git a/test/built-ins/JSON/stringify/15.12.3_2-3-a-2.js b/test/built-ins/JSON/stringify/15.12.3_2-3-a-2.js
index 7888996d7..87b0df0ac 100644
--- a/test/built-ins/JSON/stringify/15.12.3_2-3-a-2.js
+++ b/test/built-ins/JSON/stringify/15.12.3_2-3-a-2.js
@@ -8,4 +8,6 @@ description: >
replacer functions to literal numbers.
---*/
-assert.sameValue(JSON.stringify([42], function(k,v) {return v===42? new Number(84):v}), '[84]', 'JSON.stringify([42], function(k,v) {return v===42? new Number(84):v})');
+assert.sameValue(JSON.stringify([42], function(k, v) {
+ return v === 42 ? new Number(84) : v
+}), '[84]', 'JSON.stringify([42], function(k,v) {return v===42? new Number(84):v})');
diff --git a/test/built-ins/JSON/stringify/15.12.3_2-3-a-3.js b/test/built-ins/JSON/stringify/15.12.3_2-3-a-3.js
index adb582fe2..a26ae4b2f 100644
--- a/test/built-ins/JSON/stringify/15.12.3_2-3-a-3.js
+++ b/test/built-ins/JSON/stringify/15.12.3_2-3-a-3.js
@@ -8,4 +8,6 @@ description: >
replacer functions to literal numbers.
---*/
-assert.sameValue(JSON.stringify([42], function(k,v) {return v===42? new Boolean(false):v}), '[false]', 'JSON.stringify([42], function(k,v) {return v===42? new Boolean(false):v})');
+assert.sameValue(JSON.stringify([42], function(k, v) {
+ return v === 42 ? new Boolean(false) : v
+}), '[false]', 'JSON.stringify([42], function(k,v) {return v===42? new Boolean(false):v})');
diff --git a/test/built-ins/JSON/stringify/15.12.3_4-1-1.js b/test/built-ins/JSON/stringify/15.12.3_4-1-1.js
index f9b5f68ab..40b42f574 100644
--- a/test/built-ins/JSON/stringify/15.12.3_4-1-1.js
+++ b/test/built-ins/JSON/stringify/15.12.3_4-1-1.js
@@ -6,9 +6,9 @@ es5id: 15.12.3_4-1-1
description: JSON.stringify a circular object throws a error
---*/
- var obj = {};
- obj.prop = obj;
+var obj = {};
+obj.prop = obj;
assert.throws(TypeError, function() {
- JSON.stringify(obj);
+ JSON.stringify(obj);
});
diff --git a/test/built-ins/JSON/stringify/15.12.3_4-1-2.js b/test/built-ins/JSON/stringify/15.12.3_4-1-2.js
index a79907bd0..299853c91 100644
--- a/test/built-ins/JSON/stringify/15.12.3_4-1-2.js
+++ b/test/built-ins/JSON/stringify/15.12.3_4-1-2.js
@@ -6,9 +6,9 @@ es5id: 15.12.3_4-1-2
description: JSON.stringify a circular object throws a TypeError
---*/
- var obj = {};
- obj.prop = obj;
+var obj = {};
+obj.prop = obj;
assert.throws(TypeError, function() {
- JSON.stringify(obj);
+ JSON.stringify(obj);
});
diff --git a/test/built-ins/JSON/stringify/15.12.3_4-1-3.js b/test/built-ins/JSON/stringify/15.12.3_4-1-3.js
index 30d0a4339..feb1a6c9c 100644
--- a/test/built-ins/JSON/stringify/15.12.3_4-1-3.js
+++ b/test/built-ins/JSON/stringify/15.12.3_4-1-3.js
@@ -6,9 +6,13 @@ es5id: 15.12.3_4-1-3
description: JSON.stringify a indirectly circular object throws a error
---*/
- var obj = {p1: {p2: {}}};
- obj.p1.p2.prop = obj;
+var obj = {
+ p1: {
+ p2: {}
+ }
+};
+obj.p1.p2.prop = obj;
assert.throws(TypeError, function() {
- JSON.stringify(obj);
+ JSON.stringify(obj);
});