diff options
author | André Bargull <andre.bargull@gmail.com> | 2018-02-09 09:09:47 -0800 |
---|---|---|
committer | Leo Balter <leonardo.balter@gmail.com> | 2018-02-09 12:09:47 -0500 |
commit | f95b56ab28c5f18150f30fbfa889a4f6ba0e50a1 (patch) | |
tree | d403f704c1b6a1842f12df380651919beaaf5fef /test/built-ins/Function | |
parent | a01de4a722d088055a7d84d8c691ddd7109edb34 (diff) | |
download | qtdeclarative-testsuites-f95b56ab28c5f18150f30fbfa889a4f6ba0e50a1.tar.gz |
Revert "js-beautify: make all indentation consistent (depth & character) (#1409)" (#1412)
This reverts commit a01de4a722d088055a7d84d8c691ddd7109edb34.
Diffstat (limited to 'test/built-ins/Function')
403 files changed, 1305 insertions, 1948 deletions
diff --git a/test/built-ins/Function/15.3.2.1-11-1-s.js b/test/built-ins/Function/15.3.2.1-11-1-s.js index dabfb8ab7..e03cedaf5 100644 --- a/test/built-ins/Function/15.3.2.1-11-1-s.js +++ b/test/built-ins/Function/15.3.2.1-11-1-s.js @@ -9,7 +9,7 @@ description: > flags: [noStrict] ---*/ - + assert.throws(SyntaxError, function() { - Function('a', 'a', '"use strict";'); + Function('a','a','"use strict";'); }); diff --git a/test/built-ins/Function/15.3.2.1-11-1.js b/test/built-ins/Function/15.3.2.1-11-1.js index 9c6706de1..8caa5e5f7 100644 --- a/test/built-ins/Function/15.3.2.1-11-1.js +++ b/test/built-ins/Function/15.3.2.1-11-1.js @@ -8,4 +8,4 @@ description: > if body not strict ---*/ -Function('a', 'a', 'return;'); + Function('a','a','return;'); diff --git a/test/built-ins/Function/15.3.2.1-11-2-s.js b/test/built-ins/Function/15.3.2.1-11-2-s.js index 4ed4ad8c9..7f670f147 100644 --- a/test/built-ins/Function/15.3.2.1-11-2-s.js +++ b/test/built-ins/Function/15.3.2.1-11-2-s.js @@ -9,4 +9,4 @@ description: > flags: [onlyStrict] ---*/ -Function('a', 'a', 'return;'); + Function('a','a','return;'); diff --git a/test/built-ins/Function/15.3.2.1-11-3-s.js b/test/built-ins/Function/15.3.2.1-11-3-s.js index 204f9724b..29adf517d 100644 --- a/test/built-ins/Function/15.3.2.1-11-3-s.js +++ b/test/built-ins/Function/15.3.2.1-11-3-s.js @@ -11,5 +11,5 @@ flags: [noStrict] assert.throws(SyntaxError, function() { - Function('eval', '"use strict";'); + Function('eval', '"use strict";'); }); diff --git a/test/built-ins/Function/15.3.2.1-11-3.js b/test/built-ins/Function/15.3.2.1-11-3.js index 95e89dd53..a1d3cf431 100644 --- a/test/built-ins/Function/15.3.2.1-11-3.js +++ b/test/built-ins/Function/15.3.2.1-11-3.js @@ -8,4 +8,4 @@ description: > body is not strict mode ---*/ -Function('eval', 'return;'); + Function('eval', 'return;'); diff --git a/test/built-ins/Function/15.3.2.1-11-4-s.js b/test/built-ins/Function/15.3.2.1-11-4-s.js index 155a55fd6..858a9d7ac 100644 --- a/test/built-ins/Function/15.3.2.1-11-4-s.js +++ b/test/built-ins/Function/15.3.2.1-11-4-s.js @@ -10,4 +10,4 @@ description: > flags: [onlyStrict] ---*/ -Function('eval', 'return;'); + Function('eval', 'return;'); diff --git a/test/built-ins/Function/15.3.2.1-11-5-s.js b/test/built-ins/Function/15.3.2.1-11-5-s.js index 6017374b1..00db23462 100644 --- a/test/built-ins/Function/15.3.2.1-11-5-s.js +++ b/test/built-ins/Function/15.3.2.1-11-5-s.js @@ -9,7 +9,7 @@ description: > flags: [noStrict] ---*/ - + assert.throws(SyntaxError, function() { - Function('a,a', '"use strict";'); + Function('a,a','"use strict";'); }); diff --git a/test/built-ins/Function/15.3.2.1-11-5.js b/test/built-ins/Function/15.3.2.1-11-5.js index debbe409b..90d419572 100644 --- a/test/built-ins/Function/15.3.2.1-11-5.js +++ b/test/built-ins/Function/15.3.2.1-11-5.js @@ -8,4 +8,4 @@ description: > if body is not strict ---*/ -Function('a,a', 'return;'); + Function('a,a','return;'); diff --git a/test/built-ins/Function/15.3.2.1-11-6-s.js b/test/built-ins/Function/15.3.2.1-11-6-s.js index 6f840ef8d..5d5362cbb 100644 --- a/test/built-ins/Function/15.3.2.1-11-6-s.js +++ b/test/built-ins/Function/15.3.2.1-11-6-s.js @@ -9,4 +9,4 @@ description: > flags: [onlyStrict] ---*/ -Function('a,a', 'return a;'); + Function('a,a','return a;'); diff --git a/test/built-ins/Function/15.3.2.1-11-7-s.js b/test/built-ins/Function/15.3.2.1-11-7-s.js index e82253bc1..dd1d6e55a 100644 --- a/test/built-ins/Function/15.3.2.1-11-7-s.js +++ b/test/built-ins/Function/15.3.2.1-11-7-s.js @@ -10,4 +10,4 @@ description: > flags: [onlyStrict] ---*/ -Function('arguments', 'return;'); + Function('arguments', 'return;'); diff --git a/test/built-ins/Function/15.3.2.1-11-8-s.js b/test/built-ins/Function/15.3.2.1-11-8-s.js index a9ec023b0..2795b4ddf 100644 --- a/test/built-ins/Function/15.3.2.1-11-8-s.js +++ b/test/built-ins/Function/15.3.2.1-11-8-s.js @@ -11,4 +11,4 @@ description: > flags: [onlyStrict] ---*/ -var foo = new Function("baz", "qux", "baz", "return 0;"); + var foo = new Function("baz", "qux", "baz", "return 0;"); diff --git a/test/built-ins/Function/15.3.2.1-11-9-s.js b/test/built-ins/Function/15.3.2.1-11-9-s.js index a80d3e15f..fef8fdade 100644 --- a/test/built-ins/Function/15.3.2.1-11-9-s.js +++ b/test/built-ins/Function/15.3.2.1-11-9-s.js @@ -10,4 +10,4 @@ description: > body ---*/ -var foo = new Function("baz", "baz", "baz", "return 0;"); + var foo = new Function("baz", "baz", "baz", "return 0;"); diff --git a/test/built-ins/Function/15.3.5-1gs.js b/test/built-ins/Function/15.3.5-1gs.js index ee28fb1ef..129fa7834 100644 --- a/test/built-ins/Function/15.3.5-1gs.js +++ b/test/built-ins/Function/15.3.5-1gs.js @@ -10,7 +10,6 @@ flags: [onlyStrict] ---*/ "use strict"; - function _15_3_5_1_gs() {} assert.throws(TypeError, function() { diff --git a/test/built-ins/Function/15.3.5.4_2-10gs.js b/test/built-ins/Function/15.3.5.4_2-10gs.js index 70f1e76a9..70be7b5f0 100644 --- a/test/built-ins/Function/15.3.5.4_2-10gs.js +++ b/test/built-ins/Function/15.3.5.4_2-10gs.js @@ -13,9 +13,9 @@ flags: [noStrict] var f = new Function("\"use strict\";\ngNonStrict();"); assert.throws(TypeError, function() { - f(); + f(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-11gs.js b/test/built-ins/Function/15.3.5.4_2-11gs.js index 8303b2068..25824f937 100644 --- a/test/built-ins/Function/15.3.5.4_2-11gs.js +++ b/test/built-ins/Function/15.3.5.4_2-11gs.js @@ -10,10 +10,10 @@ flags: [onlyStrict] ---*/ assert.throws(TypeError, function() { - eval("gNonStrict();"); + eval("gNonStrict();"); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-12gs.js b/test/built-ins/Function/15.3.5.4_2-12gs.js index a63cb49e0..4b1fc5363 100644 --- a/test/built-ins/Function/15.3.5.4_2-12gs.js +++ b/test/built-ins/Function/15.3.5.4_2-12gs.js @@ -14,5 +14,5 @@ eval("\"use strict\";\ngNonStrict();"); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-13gs.js b/test/built-ins/Function/15.3.5.4_2-13gs.js index 0ad5d98a6..2d641a9d6 100644 --- a/test/built-ins/Function/15.3.5.4_2-13gs.js +++ b/test/built-ins/Function/15.3.5.4_2-13gs.js @@ -12,9 +12,9 @@ flags: [onlyStrict] var my_eval = eval; assert.throws(TypeError, function() { - my_eval("gNonStrict();"); + my_eval("gNonStrict();"); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-14gs.js b/test/built-ins/Function/15.3.5.4_2-14gs.js index dd7bae085..0df946d58 100644 --- a/test/built-ins/Function/15.3.5.4_2-14gs.js +++ b/test/built-ins/Function/15.3.5.4_2-14gs.js @@ -16,5 +16,5 @@ my_eval("\"use strict\";\ngNonStrict();"); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-15gs.js b/test/built-ins/Function/15.3.5.4_2-15gs.js index beb5bf508..73478f877 100644 --- a/test/built-ins/Function/15.3.5.4_2-15gs.js +++ b/test/built-ins/Function/15.3.5.4_2-15gs.js @@ -11,13 +11,13 @@ flags: [onlyStrict] ---*/ function f() { - gNonStrict(); + gNonStrict(); } assert.throws(TypeError, function() { - new f(); + new f(); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-16gs.js b/test/built-ins/Function/15.3.5.4_2-16gs.js index bcc4de265..8046f5457 100644 --- a/test/built-ins/Function/15.3.5.4_2-16gs.js +++ b/test/built-ins/Function/15.3.5.4_2-16gs.js @@ -11,14 +11,14 @@ flags: [noStrict] ---*/ function f() { - "use strict"; - gNonStrict(); + "use strict"; + gNonStrict(); } assert.throws(TypeError, function() { - new f(); + new f(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-17gs.js b/test/built-ins/Function/15.3.5.4_2-17gs.js index 2aa9d93b0..4a911e805 100644 --- a/test/built-ins/Function/15.3.5.4_2-17gs.js +++ b/test/built-ins/Function/15.3.5.4_2-17gs.js @@ -10,14 +10,14 @@ description: > flags: [onlyStrict] ---*/ -var f = function() { - gNonStrict(); +var f = function () { + gNonStrict(); } assert.throws(TypeError, function() { - new f(); + new f(); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-18gs.js b/test/built-ins/Function/15.3.5.4_2-18gs.js index 87b858905..01aba8242 100644 --- a/test/built-ins/Function/15.3.5.4_2-18gs.js +++ b/test/built-ins/Function/15.3.5.4_2-18gs.js @@ -10,15 +10,15 @@ description: > flags: [noStrict] ---*/ -var f = function() { - "use strict"; - gNonStrict(); +var f = function () { + "use strict"; + gNonStrict(); } assert.throws(TypeError, function() { - new f(); + new f(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-19gs.js b/test/built-ins/Function/15.3.5.4_2-19gs.js index 71aba8065..be861cf0c 100644 --- a/test/built-ins/Function/15.3.5.4_2-19gs.js +++ b/test/built-ins/Function/15.3.5.4_2-19gs.js @@ -11,11 +11,11 @@ flags: [onlyStrict] ---*/ assert.throws(TypeError, function() { - var obj = new(function() { - gNonStrict(); - }); + var obj = new (function () { + gNonStrict(); + }); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-1gs.js b/test/built-ins/Function/15.3.5.4_2-1gs.js index 97d6b0615..302881fcc 100644 --- a/test/built-ins/Function/15.3.5.4_2-1gs.js +++ b/test/built-ins/Function/15.3.5.4_2-1gs.js @@ -10,13 +10,13 @@ flags: [onlyStrict] ---*/ function f() { - gNonStrict(); + gNonStrict(); } assert.throws(TypeError, function() { - f(); + f(); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-20gs.js b/test/built-ins/Function/15.3.5.4_2-20gs.js index 579f9624a..0e2a8219a 100644 --- a/test/built-ins/Function/15.3.5.4_2-20gs.js +++ b/test/built-ins/Function/15.3.5.4_2-20gs.js @@ -11,13 +11,13 @@ flags: [noStrict] ---*/ assert.throws(TypeError, function() { - var obj = new(function() { - "use strict"; - gNonStrict(); - }); + var obj = new (function () { + "use strict"; + gNonStrict(); + }); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-21gs.js b/test/built-ins/Function/15.3.5.4_2-21gs.js index 67c4da277..a99ee52a7 100644 --- a/test/built-ins/Function/15.3.5.4_2-21gs.js +++ b/test/built-ins/Function/15.3.5.4_2-21gs.js @@ -11,16 +11,16 @@ flags: [onlyStrict] ---*/ function f1() { - function f() { - gNonStrict(); - } - f(); + function f() { + gNonStrict(); + } + f(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-22gs.js b/test/built-ins/Function/15.3.5.4_2-22gs.js index cd0e1fbae..363d5b4e2 100644 --- a/test/built-ins/Function/15.3.5.4_2-22gs.js +++ b/test/built-ins/Function/15.3.5.4_2-22gs.js @@ -11,16 +11,16 @@ flags: [onlyStrict] ---*/ function f1() { - var f = function() { - gNonStrict(); - } - f(); + var f = function () { + gNonStrict(); + } + f(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-23gs.js b/test/built-ins/Function/15.3.5.4_2-23gs.js index f1bc42f74..e57bf63ab 100644 --- a/test/built-ins/Function/15.3.5.4_2-23gs.js +++ b/test/built-ins/Function/15.3.5.4_2-23gs.js @@ -11,15 +11,15 @@ flags: [onlyStrict] ---*/ function f1() { - (function() { - gNonStrict(); - })(); + (function () { + gNonStrict(); + })(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-24gs.js b/test/built-ins/Function/15.3.5.4_2-24gs.js index 3e7b58f3a..327752133 100644 --- a/test/built-ins/Function/15.3.5.4_2-24gs.js +++ b/test/built-ins/Function/15.3.5.4_2-24gs.js @@ -10,18 +10,18 @@ description: > flags: [onlyStrict] ---*/ -var f1 = function() { - function f() { - gNonStrict(); - } - f(); +var f1 = function () { + function f() { + gNonStrict(); + } + f(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-25gs.js b/test/built-ins/Function/15.3.5.4_2-25gs.js index 03f885642..f4c7b216e 100644 --- a/test/built-ins/Function/15.3.5.4_2-25gs.js +++ b/test/built-ins/Function/15.3.5.4_2-25gs.js @@ -10,17 +10,17 @@ description: > flags: [onlyStrict] ---*/ -var f1 = function() { - var f = function() { - gNonStrict(); - } - f(); +var f1 = function () { + var f = function () { + gNonStrict(); + } + f(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-26gs.js b/test/built-ins/Function/15.3.5.4_2-26gs.js index c37e20a70..0fdee36d2 100644 --- a/test/built-ins/Function/15.3.5.4_2-26gs.js +++ b/test/built-ins/Function/15.3.5.4_2-26gs.js @@ -10,16 +10,16 @@ description: > flags: [onlyStrict] ---*/ -var f1 = function() { - (function() { - gNonStrict(); - })(); +var f1 = function () { + (function () { + gNonStrict(); + })(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-27gs.js b/test/built-ins/Function/15.3.5.4_2-27gs.js index ba70939a0..9c3b4388c 100644 --- a/test/built-ins/Function/15.3.5.4_2-27gs.js +++ b/test/built-ins/Function/15.3.5.4_2-27gs.js @@ -11,14 +11,14 @@ flags: [onlyStrict] ---*/ assert.throws(TypeError, function() { - (function() { - function f() { - gNonStrict(); - } - f(); - })(); + (function () { + function f() { + gNonStrict(); + } + f(); + })(); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-28gs.js b/test/built-ins/Function/15.3.5.4_2-28gs.js index 3d70c7489..70fa7f3ee 100644 --- a/test/built-ins/Function/15.3.5.4_2-28gs.js +++ b/test/built-ins/Function/15.3.5.4_2-28gs.js @@ -11,15 +11,15 @@ flags: [onlyStrict] ---*/ assert.throws(TypeError, function() { - (function() { - var f = function() { - gNonStrict(); - } - f(); - })(); + (function () { + var f = function () { + gNonStrict(); + } + f(); + })(); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-29gs.js b/test/built-ins/Function/15.3.5.4_2-29gs.js index 5aeff3ea9..5f792dbb8 100644 --- a/test/built-ins/Function/15.3.5.4_2-29gs.js +++ b/test/built-ins/Function/15.3.5.4_2-29gs.js @@ -11,13 +11,13 @@ flags: [onlyStrict] ---*/ assert.throws(TypeError, function() { - (function() { - (function() { - gNonStrict(); + (function () { + (function () { + gNonStrict(); + })(); })(); - })(); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-2gs.js b/test/built-ins/Function/15.3.5.4_2-2gs.js index f942fcf19..fed111eb2 100644 --- a/test/built-ins/Function/15.3.5.4_2-2gs.js +++ b/test/built-ins/Function/15.3.5.4_2-2gs.js @@ -11,14 +11,14 @@ flags: [noStrict] ---*/ function f() { - "use strict"; - gNonStrict(); + "use strict"; + gNonStrict(); } assert.throws(TypeError, function() { - f(); + f(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-30gs.js b/test/built-ins/Function/15.3.5.4_2-30gs.js index bec9e4323..d49e9861e 100644 --- a/test/built-ins/Function/15.3.5.4_2-30gs.js +++ b/test/built-ins/Function/15.3.5.4_2-30gs.js @@ -11,18 +11,17 @@ flags: [noStrict] ---*/ function f1() { - "use strict"; - - function f() { - gNonStrict(); - } - f(); + "use strict"; + function f() { + gNonStrict(); + } + f(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-31gs.js b/test/built-ins/Function/15.3.5.4_2-31gs.js index 2a041c132..9401b802e 100644 --- a/test/built-ins/Function/15.3.5.4_2-31gs.js +++ b/test/built-ins/Function/15.3.5.4_2-31gs.js @@ -11,17 +11,17 @@ flags: [noStrict] ---*/ function f1() { - "use strict"; - var f = function() { - gNonStrict(); - } - f(); + "use strict"; + var f = function () { + gNonStrict(); + } + f(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-32gs.js b/test/built-ins/Function/15.3.5.4_2-32gs.js index a1300daca..9b5ae34a6 100644 --- a/test/built-ins/Function/15.3.5.4_2-32gs.js +++ b/test/built-ins/Function/15.3.5.4_2-32gs.js @@ -11,16 +11,16 @@ flags: [noStrict] ---*/ function f1() { - "use strict"; - (function() { - gNonStrict(); - })(); + "use strict"; + (function () { + gNonStrict(); + })(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-33gs.js b/test/built-ins/Function/15.3.5.4_2-33gs.js index 6508770f4..9f366b3f6 100644 --- a/test/built-ins/Function/15.3.5.4_2-33gs.js +++ b/test/built-ins/Function/15.3.5.4_2-33gs.js @@ -10,19 +10,18 @@ description: > flags: [noStrict] ---*/ -var f1 = function() { - "use strict"; - - function f() { - gNonStrict(); - } - f(); +var f1 = function () { + "use strict"; + function f() { + gNonStrict(); + } + f(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-34gs.js b/test/built-ins/Function/15.3.5.4_2-34gs.js index 257211176..7c028bcbf 100644 --- a/test/built-ins/Function/15.3.5.4_2-34gs.js +++ b/test/built-ins/Function/15.3.5.4_2-34gs.js @@ -10,18 +10,18 @@ description: > flags: [noStrict] ---*/ -var f1 = function() { - "use strict"; - var f = function() { - gNonStrict(); - } - f(); +var f1 = function () { + "use strict"; + var f = function () { + gNonStrict(); + } + f(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-35gs.js b/test/built-ins/Function/15.3.5.4_2-35gs.js index f6e683ba2..2c4d8c6c4 100644 --- a/test/built-ins/Function/15.3.5.4_2-35gs.js +++ b/test/built-ins/Function/15.3.5.4_2-35gs.js @@ -10,17 +10,17 @@ description: > flags: [noStrict] ---*/ -var f1 = function() { - "use strict"; - (function() { - gNonStrict(); - })(); +var f1 = function () { + "use strict"; + (function () { + gNonStrict(); + })(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-36gs.js b/test/built-ins/Function/15.3.5.4_2-36gs.js index ded271ba8..5625d5fbf 100644 --- a/test/built-ins/Function/15.3.5.4_2-36gs.js +++ b/test/built-ins/Function/15.3.5.4_2-36gs.js @@ -11,16 +11,15 @@ flags: [noStrict] ---*/ assert.throws(TypeError, function() { - (function() { - "use strict"; - - function f() { - gNonStrict(); - } - f(); - })(); + (function () { + "use strict"; + function f() { + gNonStrict(); + } + f(); + })(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-37gs.js b/test/built-ins/Function/15.3.5.4_2-37gs.js index 8a515705b..d3eab113f 100644 --- a/test/built-ins/Function/15.3.5.4_2-37gs.js +++ b/test/built-ins/Function/15.3.5.4_2-37gs.js @@ -11,15 +11,15 @@ flags: [noStrict] ---*/ assert.throws(TypeError, function() { - (function() { - "use strict"; - var f = function() { - gNonStrict(); - } - f(); - })(); + (function () { + "use strict"; + var f = function () { + gNonStrict(); + } + f(); + })(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-38gs.js b/test/built-ins/Function/15.3.5.4_2-38gs.js index 998fecee0..d824dc0a2 100644 --- a/test/built-ins/Function/15.3.5.4_2-38gs.js +++ b/test/built-ins/Function/15.3.5.4_2-38gs.js @@ -11,14 +11,14 @@ flags: [noStrict] ---*/ assert.throws(TypeError, function() { - (function() { - "use strict"; - (function() { - gNonStrict(); + (function () { + "use strict"; + (function () { + gNonStrict(); + })(); })(); - })(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-39gs.js b/test/built-ins/Function/15.3.5.4_2-39gs.js index 1f7ee2cca..5a651dd7b 100644 --- a/test/built-ins/Function/15.3.5.4_2-39gs.js +++ b/test/built-ins/Function/15.3.5.4_2-39gs.js @@ -11,17 +11,17 @@ flags: [noStrict] ---*/ function f1() { - function f() { - "use strict"; - gNonStrict(); - } - return f(); + function f() { + "use strict"; + gNonStrict(); + } + return f(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-3gs.js b/test/built-ins/Function/15.3.5.4_2-3gs.js index 05378cc29..ec2224106 100644 --- a/test/built-ins/Function/15.3.5.4_2-3gs.js +++ b/test/built-ins/Function/15.3.5.4_2-3gs.js @@ -9,14 +9,14 @@ description: > flags: [onlyStrict] ---*/ -var f = function() { - gNonStrict(); +var f = function () { + gNonStrict(); } assert.throws(TypeError, function() { - f(); + f(); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-40gs.js b/test/built-ins/Function/15.3.5.4_2-40gs.js index 3e616381f..102b70265 100644 --- a/test/built-ins/Function/15.3.5.4_2-40gs.js +++ b/test/built-ins/Function/15.3.5.4_2-40gs.js @@ -11,17 +11,17 @@ flags: [noStrict] ---*/ function f1() { - var f = function() { - "use strict"; - gNonStrict(); - } - return f(); + var f = function () { + "use strict"; + gNonStrict(); + } + return f(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-41gs.js b/test/built-ins/Function/15.3.5.4_2-41gs.js index 5cf5456b5..2e17cff15 100644 --- a/test/built-ins/Function/15.3.5.4_2-41gs.js +++ b/test/built-ins/Function/15.3.5.4_2-41gs.js @@ -11,16 +11,16 @@ flags: [noStrict] ---*/ function f1() { - return (function() { - "use strict"; - gNonStrict(); - })(); + return (function () { + "use strict"; + gNonStrict(); + })(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-42gs.js b/test/built-ins/Function/15.3.5.4_2-42gs.js index 7d5deece0..43af9ac80 100644 --- a/test/built-ins/Function/15.3.5.4_2-42gs.js +++ b/test/built-ins/Function/15.3.5.4_2-42gs.js @@ -10,18 +10,18 @@ description: > flags: [noStrict] ---*/ -var f1 = function() { - function f() { - "use strict"; - gNonStrict(); - } - return f(); +var f1 = function () { + function f() { + "use strict"; + gNonStrict(); + } + return f(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-43gs.js b/test/built-ins/Function/15.3.5.4_2-43gs.js index c09efeb66..40f2e23cb 100644 --- a/test/built-ins/Function/15.3.5.4_2-43gs.js +++ b/test/built-ins/Function/15.3.5.4_2-43gs.js @@ -10,18 +10,18 @@ description: > flags: [noStrict] ---*/ -var f1 = function() { - var f = function() { - "use strict"; - gNonStrict(); - } - return f(); +var f1 = function () { + var f = function () { + "use strict"; + gNonStrict(); + } + return f(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-44gs.js b/test/built-ins/Function/15.3.5.4_2-44gs.js index 8ce197b44..c23e618ab 100644 --- a/test/built-ins/Function/15.3.5.4_2-44gs.js +++ b/test/built-ins/Function/15.3.5.4_2-44gs.js @@ -10,17 +10,17 @@ description: > flags: [noStrict] ---*/ -var f1 = function() { - return (function() { - "use strict"; - gNonStrict(); - })(); +var f1 = function () { + return (function () { + "use strict"; + gNonStrict(); + })(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-45gs.js b/test/built-ins/Function/15.3.5.4_2-45gs.js index 175bdae72..e2745596d 100644 --- a/test/built-ins/Function/15.3.5.4_2-45gs.js +++ b/test/built-ins/Function/15.3.5.4_2-45gs.js @@ -11,15 +11,15 @@ flags: [noStrict] ---*/ assert.throws(TypeError, function() { - (function() { - function f() { - "use strict"; - gNonStrict(); - } - return f(); - })(); + (function () { + function f() { + "use strict"; + gNonStrict(); + } + return f(); + })(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-46gs.js b/test/built-ins/Function/15.3.5.4_2-46gs.js index c120259a7..6dea39b00 100644 --- a/test/built-ins/Function/15.3.5.4_2-46gs.js +++ b/test/built-ins/Function/15.3.5.4_2-46gs.js @@ -11,15 +11,15 @@ flags: [noStrict] ---*/ assert.throws(TypeError, function() { - (function() { - var f = function() { - "use strict"; - gNonStrict(); - } - return f(); - })(); + (function () { + var f = function () { + "use strict"; + gNonStrict(); + } + return f(); + })(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-47gs.js b/test/built-ins/Function/15.3.5.4_2-47gs.js index a845ba280..180c64dd2 100644 --- a/test/built-ins/Function/15.3.5.4_2-47gs.js +++ b/test/built-ins/Function/15.3.5.4_2-47gs.js @@ -11,15 +11,15 @@ flags: [noStrict] ---*/ assert.throws(TypeError, function() { - (function() { - return (function() { - "use strict"; - gNonStrict(); + (function () { + return (function () { + "use strict"; + gNonStrict(); + })(); })(); - })(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-48gs.js b/test/built-ins/Function/15.3.5.4_2-48gs.js index 1b15f29f1..7a06d7280 100644 --- a/test/built-ins/Function/15.3.5.4_2-48gs.js +++ b/test/built-ins/Function/15.3.5.4_2-48gs.js @@ -9,16 +9,12 @@ description: > flags: [onlyStrict] ---*/ -var o = { - get foo() { - gNonStrict(); - } -} +var o = { get foo() { gNonStrict(); } } assert.throws(TypeError, function() { - o.foo; + o.foo; }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-49gs.js b/test/built-ins/Function/15.3.5.4_2-49gs.js index 36b004570..a53963530 100644 --- a/test/built-ins/Function/15.3.5.4_2-49gs.js +++ b/test/built-ins/Function/15.3.5.4_2-49gs.js @@ -10,17 +10,12 @@ description: > flags: [noStrict] ---*/ -var o = { - get foo() { - "use strict"; - gNonStrict(); - } -} +var o = { get foo() { "use strict"; gNonStrict(); } } assert.throws(TypeError, function() { - o.foo; + o.foo; }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-4gs.js b/test/built-ins/Function/15.3.5.4_2-4gs.js index eae7c646d..3f03d5202 100644 --- a/test/built-ins/Function/15.3.5.4_2-4gs.js +++ b/test/built-ins/Function/15.3.5.4_2-4gs.js @@ -10,15 +10,15 @@ description: > flags: [noStrict] ---*/ -var f = function() { - "use strict"; - gNonStrict(); +var f = function () { + "use strict"; + gNonStrict(); } assert.throws(TypeError, function() { - f(); + f(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-50gs.js b/test/built-ins/Function/15.3.5.4_2-50gs.js index 30d3c2676..2c7ab8abf 100644 --- a/test/built-ins/Function/15.3.5.4_2-50gs.js +++ b/test/built-ins/Function/15.3.5.4_2-50gs.js @@ -9,16 +9,12 @@ description: > flags: [onlyStrict] ---*/ -var o = { - set foo(stuff) { - gNonStrict(); - } -} +var o = { set foo(stuff) { gNonStrict(); } } assert.throws(TypeError, function() { - o.foo = 7; + o.foo = 7; }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-51gs.js b/test/built-ins/Function/15.3.5.4_2-51gs.js index f99cf0245..f087b3180 100644 --- a/test/built-ins/Function/15.3.5.4_2-51gs.js +++ b/test/built-ins/Function/15.3.5.4_2-51gs.js @@ -10,17 +10,12 @@ description: > flags: [noStrict] ---*/ -var o = { - set foo(stuff) { - "use strict"; - gNonStrict(); - } -} +var o = { set foo(stuff) { "use strict"; gNonStrict(); } } assert.throws(TypeError, function() { - o.foo = 8; + o.foo = 8; }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-52gs.js b/test/built-ins/Function/15.3.5.4_2-52gs.js index 7bd5c98fd..b996eadf7 100644 --- a/test/built-ins/Function/15.3.5.4_2-52gs.js +++ b/test/built-ins/Function/15.3.5.4_2-52gs.js @@ -10,16 +10,12 @@ flags: [onlyStrict] ---*/ var o = {}; -Object.defineProperty(o, "foo", { - get: function() { - gNonStrict(); - } -}); +Object.defineProperty(o, "foo", { get: function() { gNonStrict(); } }); assert.throws(TypeError, function() { - o.foo; + o.foo; }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-53gs.js b/test/built-ins/Function/15.3.5.4_2-53gs.js index 662870cbf..50bfb37e3 100644 --- a/test/built-ins/Function/15.3.5.4_2-53gs.js +++ b/test/built-ins/Function/15.3.5.4_2-53gs.js @@ -11,17 +11,12 @@ flags: [noStrict] ---*/ var o = {}; -Object.defineProperty(o, "foo", { - get: function() { - "use strict"; - gNonStrict(); - } -}); +Object.defineProperty(o, "foo", { get: function() { "use strict"; gNonStrict(); } }); assert.throws(TypeError, function() { - o.foo; + o.foo; }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-54gs.js b/test/built-ins/Function/15.3.5.4_2-54gs.js index dc45d8916..6182bd6e1 100644 --- a/test/built-ins/Function/15.3.5.4_2-54gs.js +++ b/test/built-ins/Function/15.3.5.4_2-54gs.js @@ -10,16 +10,12 @@ flags: [onlyStrict] ---*/ var o = {}; -Object.defineProperty(o, "foo", { - set: function(stuff) { - gNonStrict(); - } -}); +Object.defineProperty(o, "foo", { set: function(stuff) { gNonStrict(); } }); assert.throws(TypeError, function() { - o.foo = 9; + o.foo = 9; }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-55gs.js b/test/built-ins/Function/15.3.5.4_2-55gs.js index 35a776849..9656eecfb 100644 --- a/test/built-ins/Function/15.3.5.4_2-55gs.js +++ b/test/built-ins/Function/15.3.5.4_2-55gs.js @@ -11,17 +11,12 @@ flags: [noStrict] ---*/ var o = {}; -Object.defineProperty(o, "foo", { - set: function(stuff) { - "use strict"; - gNonStrict(); - } -}); +Object.defineProperty(o, "foo", { set: function(stuff) { "use strict"; gNonStrict(); } }); assert.throws(TypeError, function() { - o.foo = 10; + o.foo = 10; }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-56gs.js b/test/built-ins/Function/15.3.5.4_2-56gs.js index 28094f41b..ab4190fda 100644 --- a/test/built-ins/Function/15.3.5.4_2-56gs.js +++ b/test/built-ins/Function/15.3.5.4_2-56gs.js @@ -10,19 +10,13 @@ description: > flags: [noStrict] ---*/ -function f() { - "use strict"; - gNonStrict(); -}; - -function foo() { - return f(); -} +function f() { "use strict"; gNonStrict(); }; +function foo() { return f();} assert.throws(TypeError, function() { - foo(); + foo(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-57gs.js b/test/built-ins/Function/15.3.5.4_2-57gs.js index 4d2be9314..771c4a0bf 100644 --- a/test/built-ins/Function/15.3.5.4_2-57gs.js +++ b/test/built-ins/Function/15.3.5.4_2-57gs.js @@ -10,15 +10,12 @@ description: > flags: [noStrict] ---*/ -function f() { - "use strict"; - gNonStrict(); -}; +function f() { "use strict"; gNonStrict(); }; assert.throws(TypeError, function() { - eval("f();"); + eval("f();"); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-58gs.js b/test/built-ins/Function/15.3.5.4_2-58gs.js index 796733335..d903bdc47 100644 --- a/test/built-ins/Function/15.3.5.4_2-58gs.js +++ b/test/built-ins/Function/15.3.5.4_2-58gs.js @@ -10,15 +10,12 @@ description: > flags: [noStrict] ---*/ -function f() { - "use strict"; - gNonStrict(); -}; +function f() { "use strict"; gNonStrict(); }; assert.throws(TypeError, function() { - Function("return f();")(); + Function("return f();")(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-59gs.js b/test/built-ins/Function/15.3.5.4_2-59gs.js index 6df2cdfc9..75d85d2fd 100644 --- a/test/built-ins/Function/15.3.5.4_2-59gs.js +++ b/test/built-ins/Function/15.3.5.4_2-59gs.js @@ -10,15 +10,12 @@ description: > flags: [noStrict] ---*/ -function f() { - "use strict"; - gNonStrict(); -}; +function f() { "use strict"; gNonStrict(); }; assert.throws(TypeError, function() { - new Function("return f();")(); + new Function("return f();")(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-5gs.js b/test/built-ins/Function/15.3.5.4_2-5gs.js index 299e8ce1b..6e6f67821 100644 --- a/test/built-ins/Function/15.3.5.4_2-5gs.js +++ b/test/built-ins/Function/15.3.5.4_2-5gs.js @@ -11,11 +11,11 @@ flags: [onlyStrict] ---*/ assert.throws(TypeError, function() { - (function() { - gNonStrict(); - })(); + (function () { + gNonStrict(); + })(); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-60gs.js b/test/built-ins/Function/15.3.5.4_2-60gs.js index 2064f51c4..eed2e180a 100644 --- a/test/built-ins/Function/15.3.5.4_2-60gs.js +++ b/test/built-ins/Function/15.3.5.4_2-60gs.js @@ -10,15 +10,12 @@ description: > flags: [noStrict] ---*/ -function f() { - "use strict"; - gNonStrict(); -}; +function f() { "use strict"; gNonStrict();}; assert.throws(TypeError, function() { - f.apply(); + f.apply(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-61gs.js b/test/built-ins/Function/15.3.5.4_2-61gs.js index fb1ed900f..696449b69 100644 --- a/test/built-ins/Function/15.3.5.4_2-61gs.js +++ b/test/built-ins/Function/15.3.5.4_2-61gs.js @@ -10,15 +10,12 @@ description: > flags: [noStrict] ---*/ -function f() { - "use strict"; - gNonStrict(); -}; +function f() { "use strict"; gNonStrict();}; assert.throws(TypeError, function() { - f.apply(null); + f.apply(null); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-62gs.js b/test/built-ins/Function/15.3.5.4_2-62gs.js index e2ca68809..57dd44c7a 100644 --- a/test/built-ins/Function/15.3.5.4_2-62gs.js +++ b/test/built-ins/Function/15.3.5.4_2-62gs.js @@ -10,15 +10,12 @@ description: > flags: [noStrict] ---*/ -function f() { - "use strict"; - gNonStrict(); -}; +function f() { "use strict"; gNonStrict();}; assert.throws(TypeError, function() { - f.apply(undefined); + f.apply(undefined); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-63gs.js b/test/built-ins/Function/15.3.5.4_2-63gs.js index 2f8cf457c..83dbe0b4f 100644 --- a/test/built-ins/Function/15.3.5.4_2-63gs.js +++ b/test/built-ins/Function/15.3.5.4_2-63gs.js @@ -10,16 +10,13 @@ description: > flags: [noStrict] ---*/ -function f() { - "use strict"; - gNonStrict(); -}; +function f() { "use strict"; gNonStrict();}; var o = {}; assert.throws(TypeError, function() { - f.apply(o); + f.apply(o); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-64gs.js b/test/built-ins/Function/15.3.5.4_2-64gs.js index b4b18805f..a95d82a41 100644 --- a/test/built-ins/Function/15.3.5.4_2-64gs.js +++ b/test/built-ins/Function/15.3.5.4_2-64gs.js @@ -11,16 +11,12 @@ flags: [noStrict] ---*/ var global = this; - -function f() { - "use strict"; - gNonStrict(); -}; +function f() { "use strict"; gNonStrict();}; assert.throws(TypeError, function() { - f.apply(global); + f.apply(global); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-65gs.js b/test/built-ins/Function/15.3.5.4_2-65gs.js index 7fe4ebbcb..6062b1d81 100644 --- a/test/built-ins/Function/15.3.5.4_2-65gs.js +++ b/test/built-ins/Function/15.3.5.4_2-65gs.js @@ -10,15 +10,12 @@ description: > flags: [noStrict] ---*/ -function f() { - "use strict"; - gNonStrict(); -}; +function f() { "use strict"; gNonStrict();}; assert.throws(TypeError, function() { - f.call(); + f.call(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-66gs.js b/test/built-ins/Function/15.3.5.4_2-66gs.js index ef1d045d9..1c410c7e7 100644 --- a/test/built-ins/Function/15.3.5.4_2-66gs.js +++ b/test/built-ins/Function/15.3.5.4_2-66gs.js @@ -10,15 +10,12 @@ description: > flags: [noStrict] ---*/ -function f() { - "use strict"; - gNonStrict(); -}; +function f() { "use strict"; gNonStrict();}; assert.throws(TypeError, function() { - f.call(null); + f.call(null); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-67gs.js b/test/built-ins/Function/15.3.5.4_2-67gs.js index 2c1e85967..76308260f 100644 --- a/test/built-ins/Function/15.3.5.4_2-67gs.js +++ b/test/built-ins/Function/15.3.5.4_2-67gs.js @@ -10,15 +10,12 @@ description: > flags: [noStrict] ---*/ -function f() { - "use strict"; - gNonStrict(); -}; +function f() { "use strict"; gNonStrict();}; assert.throws(TypeError, function() { - f.call(undefined); + f.call(undefined); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-68gs.js b/test/built-ins/Function/15.3.5.4_2-68gs.js index 37667415d..0f23492bd 100644 --- a/test/built-ins/Function/15.3.5.4_2-68gs.js +++ b/test/built-ins/Function/15.3.5.4_2-68gs.js @@ -10,16 +10,13 @@ description: > flags: [noStrict] ---*/ -function f() { - "use strict"; - gNonStrict(); -}; +function f() { "use strict"; gNonStrict();}; var o = {}; assert.throws(TypeError, function() { - f.call(o); + f.call(o); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-69gs.js b/test/built-ins/Function/15.3.5.4_2-69gs.js index 664a8003d..0572d8603 100644 --- a/test/built-ins/Function/15.3.5.4_2-69gs.js +++ b/test/built-ins/Function/15.3.5.4_2-69gs.js @@ -11,16 +11,12 @@ flags: [noStrict] ---*/ var global = this; - -function f() { - "use strict"; - gNonStrict(); -}; +function f() { "use strict"; gNonStrict();}; assert.throws(TypeError, function() { - f.call(this); + f.call(this); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-6gs.js b/test/built-ins/Function/15.3.5.4_2-6gs.js index 5a3ca1b07..425f3dcc8 100644 --- a/test/built-ins/Function/15.3.5.4_2-6gs.js +++ b/test/built-ins/Function/15.3.5.4_2-6gs.js @@ -11,13 +11,13 @@ flags: [noStrict] ---*/ assert.throws(TypeError, function() { - (function() { - "use strict"; - gNonStrict(); - })(); + (function () { + "use strict"; + gNonStrict(); + })(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-70gs.js b/test/built-ins/Function/15.3.5.4_2-70gs.js index 67c58c301..0ce9f72af 100644 --- a/test/built-ins/Function/15.3.5.4_2-70gs.js +++ b/test/built-ins/Function/15.3.5.4_2-70gs.js @@ -10,15 +10,12 @@ description: > flags: [noStrict] ---*/ -function f() { - "use strict"; - gNonStrict(); -}; +function f() { "use strict"; gNonStrict();}; assert.throws(TypeError, function() { - f.bind()(); + f.bind()(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-71gs.js b/test/built-ins/Function/15.3.5.4_2-71gs.js index 73977b200..3c3a1567e 100644 --- a/test/built-ins/Function/15.3.5.4_2-71gs.js +++ b/test/built-ins/Function/15.3.5.4_2-71gs.js @@ -10,15 +10,12 @@ description: > flags: [noStrict] ---*/ -function f() { - "use strict"; - gNonStrict(); -}; +function f() { "use strict"; gNonStrict();}; assert.throws(TypeError, function() { - f.bind(null)(); + f.bind(null)(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-72gs.js b/test/built-ins/Function/15.3.5.4_2-72gs.js index a2db6d625..7cd70c9da 100644 --- a/test/built-ins/Function/15.3.5.4_2-72gs.js +++ b/test/built-ins/Function/15.3.5.4_2-72gs.js @@ -10,15 +10,12 @@ description: > flags: [noStrict] ---*/ -function f() { - "use strict"; - gNonStrict(); -}; +function f() { "use strict"; gNonStrict();}; assert.throws(TypeError, function() { - f.bind(undefined)(); + f.bind(undefined)(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-73gs.js b/test/built-ins/Function/15.3.5.4_2-73gs.js index 0c463d764..c616c07e4 100644 --- a/test/built-ins/Function/15.3.5.4_2-73gs.js +++ b/test/built-ins/Function/15.3.5.4_2-73gs.js @@ -10,16 +10,13 @@ description: > flags: [noStrict] ---*/ -function f() { - "use strict"; - gNonStrict(); -}; +function f() { "use strict"; gNonStrict();}; var o = {}; assert.throws(TypeError, function() { - f.bind(o)(); + f.bind(o)(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-74gs.js b/test/built-ins/Function/15.3.5.4_2-74gs.js index 4918478c2..e1c730c23 100644 --- a/test/built-ins/Function/15.3.5.4_2-74gs.js +++ b/test/built-ins/Function/15.3.5.4_2-74gs.js @@ -11,16 +11,12 @@ flags: [noStrict] ---*/ var global = this; - -function f() { - "use strict"; - gNonStrict(); -}; +function f() { "use strict"; gNonStrict();}; assert.throws(TypeError, function() { - f.bind(global)(); + f.bind(global)(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-75gs.js b/test/built-ins/Function/15.3.5.4_2-75gs.js index 8f02e17e7..b39e30f70 100644 --- a/test/built-ins/Function/15.3.5.4_2-75gs.js +++ b/test/built-ins/Function/15.3.5.4_2-75gs.js @@ -11,17 +11,11 @@ flags: [noStrict] features: [caller] ---*/ -function f() { - return gNonStrict(); -}; - -function foo() { - "use strict"; - f(); -} -foo(); +function f() { return gNonStrict();}; +function foo() { "use strict"; f();} +foo(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-76gs.js b/test/built-ins/Function/15.3.5.4_2-76gs.js index 51bb190b2..9da118714 100644 --- a/test/built-ins/Function/15.3.5.4_2-76gs.js +++ b/test/built-ins/Function/15.3.5.4_2-76gs.js @@ -11,15 +11,10 @@ flags: [noStrict] features: [caller] ---*/ -function f() { - return gNonStrict(); -}; -(function() { - "use strict"; - return eval("f();"); -})(); +function f() { return gNonStrict();}; +(function () {"use strict"; return eval("f();"); })(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-77gs.js b/test/built-ins/Function/15.3.5.4_2-77gs.js index fa9345310..572e38205 100644 --- a/test/built-ins/Function/15.3.5.4_2-77gs.js +++ b/test/built-ins/Function/15.3.5.4_2-77gs.js @@ -11,15 +11,10 @@ flags: [noStrict] features: [caller] ---*/ -function f() { - return gNonStrict(); -}; -(function() { - "use strict"; - Function("return f();")(); -})(); +function f() {return gNonStrict();}; +(function () {"use strict"; Function("return f();")(); })(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-78gs.js b/test/built-ins/Function/15.3.5.4_2-78gs.js index 7ee58dd31..80aa51604 100644 --- a/test/built-ins/Function/15.3.5.4_2-78gs.js +++ b/test/built-ins/Function/15.3.5.4_2-78gs.js @@ -11,15 +11,10 @@ flags: [noStrict] features: [caller] ---*/ -function f() { - return gNonStrict(); -}; -(function() { - "use strict"; - return new Function("return f();")(); -})(); +function f() { return gNonStrict();}; +(function () {"use strict"; return new Function("return f();")(); })(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-79gs.js b/test/built-ins/Function/15.3.5.4_2-79gs.js index 6754f8fd0..e0814d0d2 100644 --- a/test/built-ins/Function/15.3.5.4_2-79gs.js +++ b/test/built-ins/Function/15.3.5.4_2-79gs.js @@ -11,15 +11,10 @@ flags: [noStrict] features: [caller] ---*/ -function f() { - return gNonStrict(); -}; -(function() { - "use strict"; - f.apply(); -})(); +function f() { return gNonStrict();}; +(function () {"use strict"; f.apply();})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-7gs.js b/test/built-ins/Function/15.3.5.4_2-7gs.js index 9630356d3..f66abe159 100644 --- a/test/built-ins/Function/15.3.5.4_2-7gs.js +++ b/test/built-ins/Function/15.3.5.4_2-7gs.js @@ -12,9 +12,9 @@ flags: [onlyStrict] var f = Function("return gNonStrict();"); assert.throws(TypeError, function() { - f(); + f(); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-80gs.js b/test/built-ins/Function/15.3.5.4_2-80gs.js index 17efe2a02..aa03f3ec2 100644 --- a/test/built-ins/Function/15.3.5.4_2-80gs.js +++ b/test/built-ins/Function/15.3.5.4_2-80gs.js @@ -11,15 +11,10 @@ flags: [noStrict] features: [caller] ---*/ -function f() { - return gNonStrict(); -}; -(function() { - "use strict"; - f.apply(null); -})(); +function f() { return gNonStrict();}; +(function () {"use strict"; f.apply(null); })(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-81gs.js b/test/built-ins/Function/15.3.5.4_2-81gs.js index d4a12ba2f..e3f028da4 100644 --- a/test/built-ins/Function/15.3.5.4_2-81gs.js +++ b/test/built-ins/Function/15.3.5.4_2-81gs.js @@ -11,15 +11,10 @@ flags: [noStrict] features: [caller] ---*/ -function f() { - return gNonStrict(); -}; -(function() { - "use strict"; - f.apply(undefined); -})(); +function f() { return gNonStrict();}; +(function () {"use strict"; f.apply(undefined); })(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-82gs.js b/test/built-ins/Function/15.3.5.4_2-82gs.js index 101a01f50..7a78c1726 100644 --- a/test/built-ins/Function/15.3.5.4_2-82gs.js +++ b/test/built-ins/Function/15.3.5.4_2-82gs.js @@ -11,16 +11,11 @@ flags: [noStrict] features: [caller] ---*/ -function f() { - return gNonStrict(); -}; +function f() { return gNonStrict();}; var o = {}; -(function() { - "use strict"; - f.apply(o); -})(); +(function () {"use strict"; f.apply(o); })(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-83gs.js b/test/built-ins/Function/15.3.5.4_2-83gs.js index a7ba40be0..940e7d7e4 100644 --- a/test/built-ins/Function/15.3.5.4_2-83gs.js +++ b/test/built-ins/Function/15.3.5.4_2-83gs.js @@ -12,16 +12,10 @@ features: [caller] ---*/ var global = this; - -function f() { - return gNonStrict(); -}; -(function() { - "use strict"; - f.apply(global); -})(); +function f() { return gNonStrict();}; +(function () {"use strict"; f.apply(global); })(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-84gs.js b/test/built-ins/Function/15.3.5.4_2-84gs.js index 0246f8b6a..ecc1e152d 100644 --- a/test/built-ins/Function/15.3.5.4_2-84gs.js +++ b/test/built-ins/Function/15.3.5.4_2-84gs.js @@ -11,15 +11,10 @@ flags: [noStrict] features: [caller] ---*/ -function f() { - return gNonStrict(); -}; -(function() { - "use strict"; - f.call(); -})(); +function f() { return gNonStrict();}; +(function () {"use strict"; f.call();})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-85gs.js b/test/built-ins/Function/15.3.5.4_2-85gs.js index 8dcb404c6..ff899ce7c 100644 --- a/test/built-ins/Function/15.3.5.4_2-85gs.js +++ b/test/built-ins/Function/15.3.5.4_2-85gs.js @@ -11,15 +11,10 @@ flags: [noStrict] features: [caller] ---*/ -function f() { - return gNonStrict(); -}; -(function() { - "use strict"; - f.call(null); -})(); +function f() { return gNonStrict();}; +(function () {"use strict"; f.call(null);})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-86gs.js b/test/built-ins/Function/15.3.5.4_2-86gs.js index f8375dd90..c617f4eb7 100644 --- a/test/built-ins/Function/15.3.5.4_2-86gs.js +++ b/test/built-ins/Function/15.3.5.4_2-86gs.js @@ -11,15 +11,10 @@ flags: [noStrict] features: [caller] ---*/ -function f() { - return gNonStrict(); -}; -(function() { - "use strict"; - f.call(undefined); -})(); +function f() { return gNonStrict();}; +(function () {"use strict"; f.call(undefined); })(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-87gs.js b/test/built-ins/Function/15.3.5.4_2-87gs.js index 37e027c76..c2ba65142 100644 --- a/test/built-ins/Function/15.3.5.4_2-87gs.js +++ b/test/built-ins/Function/15.3.5.4_2-87gs.js @@ -11,16 +11,11 @@ flags: [noStrict] features: [caller] ---*/ -function f() { - return gNonStrict(); -}; +function f() { return gNonStrict();}; var o = {}; -(function() { - "use strict"; - f.call(o); -})(); +(function () {"use strict"; f.call(o); })(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-88gs.js b/test/built-ins/Function/15.3.5.4_2-88gs.js index 58ee449f0..7d1b0825c 100644 --- a/test/built-ins/Function/15.3.5.4_2-88gs.js +++ b/test/built-ins/Function/15.3.5.4_2-88gs.js @@ -12,16 +12,10 @@ features: [caller] ---*/ var global = this; - -function f() { - return gNonStrict(); -}; -(function() { - "use strict"; - f.call(global); -})(); +function f() { return gNonStrict();}; +(function () {"use strict"; f.call(global); })(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-89gs.js b/test/built-ins/Function/15.3.5.4_2-89gs.js index ed310abed..ec574b3a7 100644 --- a/test/built-ins/Function/15.3.5.4_2-89gs.js +++ b/test/built-ins/Function/15.3.5.4_2-89gs.js @@ -11,15 +11,10 @@ flags: [noStrict] features: [caller] ---*/ -function f() { - return gNonStrict(); -}; -(function() { - "use strict"; - f.bind()(); -})(); +function f() { return gNonStrict();}; +(function () {"use strict"; f.bind()();})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-8gs.js b/test/built-ins/Function/15.3.5.4_2-8gs.js index 437514a5a..dd20678dd 100644 --- a/test/built-ins/Function/15.3.5.4_2-8gs.js +++ b/test/built-ins/Function/15.3.5.4_2-8gs.js @@ -13,9 +13,9 @@ flags: [noStrict] var f = Function("\"use strict\";\ngNonStrict();"); assert.throws(TypeError, function() { - f(); + f(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-90gs.js b/test/built-ins/Function/15.3.5.4_2-90gs.js index 8ad718946..bbab075d1 100644 --- a/test/built-ins/Function/15.3.5.4_2-90gs.js +++ b/test/built-ins/Function/15.3.5.4_2-90gs.js @@ -11,15 +11,10 @@ flags: [noStrict] features: [caller] ---*/ -function f() { - return gNonStrict(); -}; -(function() { - "use strict"; - f.bind(null)(); -})(); +function f() { return gNonStrict();}; +(function () {"use strict"; f.bind(null)(); })(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-91gs.js b/test/built-ins/Function/15.3.5.4_2-91gs.js index ccab0095c..1049047f0 100644 --- a/test/built-ins/Function/15.3.5.4_2-91gs.js +++ b/test/built-ins/Function/15.3.5.4_2-91gs.js @@ -11,15 +11,10 @@ flags: [noStrict] features: [caller] ---*/ -function f() { - return gNonStrict(); -}; -(function() { - "use strict"; - f.bind(undefined)(); -})(); +function f() { return gNonStrict();}; +(function () {"use strict"; f.bind(undefined)(); })(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-92gs.js b/test/built-ins/Function/15.3.5.4_2-92gs.js index 9a2f49972..8ff2abc39 100644 --- a/test/built-ins/Function/15.3.5.4_2-92gs.js +++ b/test/built-ins/Function/15.3.5.4_2-92gs.js @@ -11,16 +11,11 @@ flags: [noStrict] features: [caller] ---*/ -function f() { - return gNonStrict(); -}; +function f() { return gNonStrict();}; var o = {}; -(function() { - "use strict"; - f.bind(o)(); -})(); +(function () {"use strict"; f.bind(o)(); })(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-93gs.js b/test/built-ins/Function/15.3.5.4_2-93gs.js index 8fe3b1120..bad743269 100644 --- a/test/built-ins/Function/15.3.5.4_2-93gs.js +++ b/test/built-ins/Function/15.3.5.4_2-93gs.js @@ -12,16 +12,10 @@ features: [caller] ---*/ var global = this; - -function f() { - return gNonStrict(); -}; -(function() { - "use strict"; - f.bind(global)(); -})(); +function f() { return gNonStrict();}; +(function () {"use strict"; f.bind(global)(); })(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-94gs.js b/test/built-ins/Function/15.3.5.4_2-94gs.js index 81bcd689a..fefc31e18 100644 --- a/test/built-ins/Function/15.3.5.4_2-94gs.js +++ b/test/built-ins/Function/15.3.5.4_2-94gs.js @@ -10,15 +10,15 @@ description: > flags: [noStrict] ---*/ -var gNonStrict = function() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; +var gNonStrict = function () { + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } function f() { - "use strict"; - gNonStrict(); + "use strict"; + gNonStrict(); } assert.throws(TypeError, function() { - f(); + f(); }); diff --git a/test/built-ins/Function/15.3.5.4_2-95gs.js b/test/built-ins/Function/15.3.5.4_2-95gs.js index 34f7c5b64..836017045 100644 --- a/test/built-ins/Function/15.3.5.4_2-95gs.js +++ b/test/built-ins/Function/15.3.5.4_2-95gs.js @@ -13,10 +13,10 @@ flags: [noStrict] var gNonStrict = Function("return gNonStrict.caller || gNonStrict.caller.throwTypeError;"); function f() { - "use strict"; - gNonStrict(); + "use strict"; + gNonStrict(); } assert.throws(TypeError, function() { - f(); + f(); }); diff --git a/test/built-ins/Function/15.3.5.4_2-96gs.js b/test/built-ins/Function/15.3.5.4_2-96gs.js index 03dc813f5..bb601c08f 100644 --- a/test/built-ins/Function/15.3.5.4_2-96gs.js +++ b/test/built-ins/Function/15.3.5.4_2-96gs.js @@ -10,19 +10,19 @@ description: > flags: [noStrict] ---*/ -var o = { - get gNonStrict() { - var tmp = Object.getOwnPropertyDescriptor(o, "gNonStrict").get; - return tmp.caller || tmp.caller.throwTypeError; - } +var o = { + get gNonStrict() { + var tmp = Object.getOwnPropertyDescriptor(o, "gNonStrict").get; + return tmp.caller || tmp.caller.throwTypeError; + } }; function f() { - "use strict"; - return o.gNonStrict; + "use strict"; + return o.gNonStrict; } assert.throws(TypeError, function() { - f(); + f(); }); diff --git a/test/built-ins/Function/15.3.5.4_2-97gs.js b/test/built-ins/Function/15.3.5.4_2-97gs.js index 61c923331..7c4d7474b 100644 --- a/test/built-ins/Function/15.3.5.4_2-97gs.js +++ b/test/built-ins/Function/15.3.5.4_2-97gs.js @@ -13,14 +13,14 @@ flags: [noStrict] var gNonStrict = gNonStrictBindee.bind(null); function f() { - "use strict"; - gNonStrict(); + "use strict"; + gNonStrict(); } assert.throws(TypeError, function() { - f(); + f(); }); function gNonStrictBindee() { - return gNonStrictBindee.caller || gNonStrictBindee.caller.throwTypeError; + return gNonStrictBindee.caller || gNonStrictBindee.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-9gs.js b/test/built-ins/Function/15.3.5.4_2-9gs.js index 07c0decbc..08fbd5cb3 100644 --- a/test/built-ins/Function/15.3.5.4_2-9gs.js +++ b/test/built-ins/Function/15.3.5.4_2-9gs.js @@ -13,9 +13,9 @@ flags: [onlyStrict] var f = new Function("return gNonStrict();"); assert.throws(TypeError, function() { - f(); + f(); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/S10.1.1_A1_T3.js b/test/built-ins/Function/S10.1.1_A1_T3.js index 3a9d96b63..503a17fd3 100644 --- a/test/built-ins/Function/S10.1.1_A1_T3.js +++ b/test/built-ins/Function/S10.1.1_A1_T3.js @@ -12,8 +12,6 @@ description: > ---*/ //CHECK#1 -var x = new function f1() { - return 1; -}; -if (typeof(x.constructor) !== "function") +var x=new function f1(){return 1;}; +if(typeof(x.constructor)!=="function") $ERROR('#1: typeof(x.constructor)!=="function"'); diff --git a/test/built-ins/Function/S15.3.1_A1_T1.js b/test/built-ins/Function/S15.3.1_A1_T1.js index 8175c337d..43129631d 100644 --- a/test/built-ins/Function/S15.3.1_A1_T1.js +++ b/test/built-ins/Function/S15.3.1_A1_T1.js @@ -12,7 +12,7 @@ description: Create simple functions and check returned values var f = Function("return arguments[0];"); //CHECK#1 -if (!(f instanceof Function)) { +if (!(f instanceof Function)){ $ERROR('#1: f instanceof Function'); } diff --git a/test/built-ins/Function/S15.3.2.1_A1_T1.js b/test/built-ins/Function/S15.3.2.1_A1_T1.js index 52e20e1fd..12c037b04 100644 --- a/test/built-ins/Function/S15.3.2.1_A1_T1.js +++ b/test/built-ins/Function/S15.3.2.1_A1_T1.js @@ -14,11 +14,7 @@ es5id: 15.3.2.1_A1_T1 description: "The body of the function is \"{toString:function(){throw 7;}}\"" ---*/ -var body = { - toString: function() { - throw 7; - } -} +var body = {toString:function(){throw 7;}} //CHECK#1 try { @@ -26,6 +22,6 @@ try { $ERROR('#1: When the Function constructor is called with one argument then body be that argument the following step are taken: call ToString(body)'); } catch (e) { if (e !== 7) { - $ERROR('#1.1: When the Function constructor is called with one argument then body be that argument the following step are taken: call ToString(body)'); + $ERROR('#1.1: When the Function constructor is called with one argument then body be that argument the following step are taken: call ToString(body)'); } } diff --git a/test/built-ins/Function/S15.3.2.1_A1_T10.js b/test/built-ins/Function/S15.3.2.1_A1_T10.js index 764e5b2a0..f1ed2fe5c 100644 --- a/test/built-ins/Function/S15.3.2.1_A1_T10.js +++ b/test/built-ins/Function/S15.3.2.1_A1_T10.js @@ -18,7 +18,7 @@ description: Value of the function constructor argument is "null" try { var f = new Function(null); } catch (e) { - $ERROR('#1: test fails with error ' + e); + $ERROR('#1: test fails with error '+e); } //CHECK#2 diff --git a/test/built-ins/Function/S15.3.2.1_A1_T11.js b/test/built-ins/Function/S15.3.2.1_A1_T11.js index 74248f283..18baa8e9a 100644 --- a/test/built-ins/Function/S15.3.2.1_A1_T11.js +++ b/test/built-ins/Function/S15.3.2.1_A1_T11.js @@ -18,7 +18,7 @@ description: Value of the function constructor argument is "undefined" try { var f = new Function(undefined); } catch (e) { - $ERROR('#1: test failed with error ' + e); + $ERROR('#1: test failed with error '+e); } //CHECK#2 diff --git a/test/built-ins/Function/S15.3.2.1_A1_T12.js b/test/built-ins/Function/S15.3.2.1_A1_T12.js index 81d816f38..bc4646e08 100644 --- a/test/built-ins/Function/S15.3.2.1_A1_T12.js +++ b/test/built-ins/Function/S15.3.2.1_A1_T12.js @@ -18,7 +18,7 @@ description: Value of the function constructor argument is "void 0" try { var f = new Function(void 0); } catch (e) { - $ERROR('#1: test failed with error ' + e); + $ERROR('#1: test failed with error '+e); } //CHECK#2 @@ -27,6 +27,6 @@ if (f.constructor !== Function) { } //CHECK#3 -if (f() !== undefined) { +if (f()!==undefined) { $ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...'); } diff --git a/test/built-ins/Function/S15.3.2.1_A1_T13.js b/test/built-ins/Function/S15.3.2.1_A1_T13.js index 09942b2c5..fbc01fc89 100644 --- a/test/built-ins/Function/S15.3.2.1_A1_T13.js +++ b/test/built-ins/Function/S15.3.2.1_A1_T13.js @@ -17,9 +17,9 @@ description: Value of the function constructor argument is "{}" //CHECK#1 try { var f = new Function({}); - $ERROR('#1: test failed with error ' + e); + $ERROR('#1: test failed with error '+e); } catch (e) { if (!(e instanceof SyntaxError)) { - $ERROR('#1.1: If body is not parsable as FunctionBody then throw a SyntaxError exception'); + $ERROR('#1.1: If body is not parsable as FunctionBody then throw a SyntaxError exception'); } } diff --git a/test/built-ins/Function/S15.3.2.1_A1_T2.js b/test/built-ins/Function/S15.3.2.1_A1_T2.js index a1424960b..0e971af37 100644 --- a/test/built-ins/Function/S15.3.2.1_A1_T2.js +++ b/test/built-ins/Function/S15.3.2.1_A1_T2.js @@ -16,17 +16,13 @@ description: > 1;";}}" ---*/ -var body = { - toString: function() { - return "return 1;"; - } -}; +var body={toString:function(){return "return 1;";}}; //CHECK#1 try { - var f = new Function(body); + var f = new Function(body); } catch (e) { - $ERROR('#1: test failed with error ' + e); + $ERROR('#1: test failed with error '+e); } //CHECK#2 @@ -35,6 +31,6 @@ if (f.constructor !== Function) { } //CHECK#3 -if (f() !== 1) { +if (f()!==1) { $ERROR('#3: hen the Function constructor is called with one argument then body be that argument the following steps are taken...'); } diff --git a/test/built-ins/Function/S15.3.2.1_A1_T3.js b/test/built-ins/Function/S15.3.2.1_A1_T3.js index 25e9f5493..aec811fe1 100644 --- a/test/built-ins/Function/S15.3.2.1_A1_T3.js +++ b/test/built-ins/Function/S15.3.2.1_A1_T3.js @@ -18,7 +18,7 @@ description: Value of the function constructor argument is 1 try { var f = new Function(1); } catch (e) { - $ERROR('#1: test failed with error ' + e); + $ERROR('#1: test failed with error '+e); } //CHECK#2 @@ -27,6 +27,6 @@ if (f.constructor !== Function) { } //CHECK#3 -if (f() !== undefined) { +if (f()!==undefined) { $ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...'); } diff --git a/test/built-ins/Function/S15.3.2.1_A1_T4.js b/test/built-ins/Function/S15.3.2.1_A1_T4.js index 2b9be51a5..2d862279d 100644 --- a/test/built-ins/Function/S15.3.2.1_A1_T4.js +++ b/test/built-ins/Function/S15.3.2.1_A1_T4.js @@ -20,7 +20,7 @@ description: > try { var f = new Function(x); } catch (e) { - $ERROR('#1: test failed with error ' + e); + $ERROR('#1: test failed with error '+e); } //CHECK#2 @@ -29,7 +29,7 @@ if (f.constructor !== Function) { } //CHECK#3 -if (f() !== undefined) { +if (f()!==undefined) { $ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...'); } diff --git a/test/built-ins/Function/S15.3.2.1_A1_T5.js b/test/built-ins/Function/S15.3.2.1_A1_T5.js index c7c3df4c0..9cde6597f 100644 --- a/test/built-ins/Function/S15.3.2.1_A1_T5.js +++ b/test/built-ins/Function/S15.3.2.1_A1_T5.js @@ -22,7 +22,7 @@ var body = Object("return \'A\'"); try { var f = new Function(body); } catch (e) { - $ERROR('#1: test failed with error ' + e); + $ERROR('#1: test failed with error '+e); } //CHECK#2 @@ -31,6 +31,6 @@ if (f.constructor !== Function) { } //CHECK#3 -if (f() !== "\u0041") { +if (f()!=="\u0041") { $ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...'); } diff --git a/test/built-ins/Function/S15.3.2.1_A1_T6.js b/test/built-ins/Function/S15.3.2.1_A1_T6.js index 548718444..9ed5398b4 100644 --- a/test/built-ins/Function/S15.3.2.1_A1_T6.js +++ b/test/built-ins/Function/S15.3.2.1_A1_T6.js @@ -20,7 +20,7 @@ description: > try { var f = new Function("return true;"); } catch (e) { - $ERROR('#1: test failed with error ' + e); + $ERROR('#1: test failed with error '+e); } //CHECK#2 diff --git a/test/built-ins/Function/S15.3.2.1_A1_T7.js b/test/built-ins/Function/S15.3.2.1_A1_T7.js index bb68c4257..23bde2777 100644 --- a/test/built-ins/Function/S15.3.2.1_A1_T7.js +++ b/test/built-ins/Function/S15.3.2.1_A1_T7.js @@ -20,7 +20,7 @@ var body = new Object(1); try { var f = new Function(body); } catch (e) { - $ERROR('#1: test failed with error ' + e); + $ERROR('#1: test failed with error '+e); } //CHECK#2 @@ -29,6 +29,6 @@ if (f.constructor !== Function) { } //CHECK#3 -if (f() !== undefined) { +if (f()!==undefined) { $ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...'); } diff --git a/test/built-ins/Function/S15.3.2.1_A1_T8.js b/test/built-ins/Function/S15.3.2.1_A1_T8.js index e17847cbd..0b1c5d4db 100644 --- a/test/built-ins/Function/S15.3.2.1_A1_T8.js +++ b/test/built-ins/Function/S15.3.2.1_A1_T8.js @@ -22,6 +22,6 @@ try { $ERROR('#1: If body is not parsable as FunctionBody then throw a SyntaxError exception'); } catch (e) { if (!(e instanceof SyntaxError)) { - $ERROR('#1.1: If body is not parsable as FunctionBody then throw a SyntaxError exception'); + $ERROR('#1.1: If body is not parsable as FunctionBody then throw a SyntaxError exception'); } } diff --git a/test/built-ins/Function/S15.3.2.1_A2_T1.js b/test/built-ins/Function/S15.3.2.1_A2_T1.js index e007a4af0..8316ce12a 100644 --- a/test/built-ins/Function/S15.3.2.1_A2_T1.js +++ b/test/built-ins/Function/S15.3.2.1_A2_T1.js @@ -19,11 +19,11 @@ try { } //CHECK#2 -if (!(f instanceof Function)) { +if (!(f instanceof Function)){ $ERROR('#2: It is permissible but not necessary to have one argument for each formal parameter to be specified'); } //CHECK#3 -if (f(1, 2, 3) !== 6) { +if (f(1,2,3) !== 6) { $ERROR('#3: It is permissible but not necessary to have one argument for each formal parameter to be specified'); } diff --git a/test/built-ins/Function/S15.3.2.1_A2_T2.js b/test/built-ins/Function/S15.3.2.1_A2_T2.js index 241712a5b..e02bc648f 100644 --- a/test/built-ins/Function/S15.3.2.1_A2_T2.js +++ b/test/built-ins/Function/S15.3.2.1_A2_T2.js @@ -19,11 +19,11 @@ try { } //CHECK#2 -if (!(f instanceof Function)) { +if (!(f instanceof Function)){ $ERROR('#2: It is permissible but not necessary to have one argument for each formal parameter to be specified'); } //CHECK#3 -if (f("AB", "BA", 1) !== "ABBA1") { +if (f("AB","BA",1) !== "ABBA1") { $ERROR('#3: It is permissible but not necessary to have one argument for each formal parameter to be specified'); } diff --git a/test/built-ins/Function/S15.3.2.1_A2_T3.js b/test/built-ins/Function/S15.3.2.1_A2_T3.js index dee237ec5..afa0b05de 100644 --- a/test/built-ins/Function/S15.3.2.1_A2_T3.js +++ b/test/built-ins/Function/S15.3.2.1_A2_T3.js @@ -19,11 +19,11 @@ try { } //CHECK#2 -if (!(f instanceof Function)) { +if (!(f instanceof Function)){ $ERROR('#2: It is permissible but not necessary to have one argument for each formal parameter to be specified'); } //CHECK#3 -if (f(1, 1, "ABBA") !== "2ABBA") { +if (f(1,1,"ABBA") !== "2ABBA") { $ERROR('#3: It is permissible but not necessary to have one argument for each formal parameter to be specified'); } diff --git a/test/built-ins/Function/S15.3.2.1_A2_T4.js b/test/built-ins/Function/S15.3.2.1_A2_T4.js index d2e54ebb2..973be30e4 100644 --- a/test/built-ins/Function/S15.3.2.1_A2_T4.js +++ b/test/built-ins/Function/S15.3.2.1_A2_T4.js @@ -11,13 +11,9 @@ description: > various results ---*/ -var i = 0; +var i=0; -var p = { - toString: function() { - return "arg" + (++i); - } -}; +var p={toString:function(){return "arg"+(++i);}}; //CHECK#1 try { @@ -27,11 +23,11 @@ try { } //CHECK#2 -if (!(f instanceof Function)) { +if (!(f instanceof Function)){ $ERROR('#2: It is permissible but not necessary to have one argument for each formal parameter to be specified'); } //CHECK#3 -if (f(4, "2", "QUESTION") !== "42QUESTION") { +if (f(4,"2","QUESTION") !== "42QUESTION") { $ERROR('#3: It is permissible but not necessary to have one argument for each formal parameter to be specified'); } diff --git a/test/built-ins/Function/S15.3.2.1_A2_T5.js b/test/built-ins/Function/S15.3.2.1_A2_T5.js index bc9b1f0b4..70ca03e73 100644 --- a/test/built-ins/Function/S15.3.2.1_A2_T5.js +++ b/test/built-ins/Function/S15.3.2.1_A2_T5.js @@ -11,27 +11,23 @@ description: > various results and a concotenation of strings ---*/ -var i = 0; +var i=0; -var p = { - toString: function() { - return "arg" + (++i) - } -}; +var p={toString:function(){return "arg"+(++i)}}; //CHECK#1 try { - var f = Function(p + "," + p, p, "return arg1+arg2+arg3;"); + var f = Function(p+","+p,p, "return arg1+arg2+arg3;"); } catch (e) { $ERROR('#1: test failed'); } //CHECK#2 -if (!(f instanceof Function)) { +if (!(f instanceof Function)){ $ERROR('#2: It is permissible but not necessary to have one argument for each formal parameter to be specified'); } //CHECK#3 -if (f("", 1, 2) !== "12") { +if (f("",1,2) !== "12") { $ERROR('#3: It is permissible but not necessary to have one argument for each formal parameter to be specified'); } diff --git a/test/built-ins/Function/S15.3.2.1_A2_T6.js b/test/built-ins/Function/S15.3.2.1_A2_T6.js index 0d658808d..15fe4beb5 100644 --- a/test/built-ins/Function/S15.3.2.1_A2_T6.js +++ b/test/built-ins/Function/S15.3.2.1_A2_T6.js @@ -11,27 +11,23 @@ description: > various results and a concotenation of strings ---*/ -var i = 0; +var i=0; -var p = { - toString: function() { - return "arg" + (++i) - } -}; +var p={toString:function(){return "arg"+(++i)}}; //CHECK#1 try { - var f = Function(p + "," + p + "," + p, "return arg1+arg2+arg3;"); + var f = Function(p+","+p+","+p, "return arg1+arg2+arg3;"); } catch (e) { $ERROR('#1: test failed'); } //CHECK#2 -if (!(f instanceof Function)) { +if (!(f instanceof Function)){ $ERROR('#2: It is permissible but not necessary to have one argument for each formal parameter to be specified'); } //CHECK#3 -if (f("", 1, p) !== "1arg4") { +if (f("",1,p) !== "1arg4") { $ERROR('#3: It is permissible but not necessary to have one argument for each formal parameter to be specified'); } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T1.js b/test/built-ins/Function/S15.3.2.1_A3_T1.js index b5c796b35..3a1013ecd 100644 --- a/test/built-ins/Function/S15.3.2.1_A3_T1.js +++ b/test/built-ins/Function/S15.3.2.1_A3_T1.js @@ -19,23 +19,15 @@ description: > 'body';}}" ---*/ -var p = { - toString: function() { - throw 1; - } -}; -var body = { - toString: function() { - throw "body"; - } -}; +var p = {toString:function(){throw 1;}}; +var body = {toString:function(){throw "body";}}; //CHECK#1 try { - var f = new Function(p, body); + var f = new Function(p,body); $ERROR('#1: test failed'); } catch (e) { if (e !== 1) { - $ERROR('#1.1: i) Let Result(i) be the first argument; ii) Let P be ToString(Result(i))'); + $ERROR('#1.1: i) Let Result(i) be the first argument; ii) Let P be ToString(Result(i))'); } } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T10.js b/test/built-ins/Function/S15.3.2.1_A3_T10.js index 684c1e7da..1945adbbe 100644 --- a/test/built-ins/Function/S15.3.2.1_A3_T10.js +++ b/test/built-ins/Function/S15.3.2.1_A3_T10.js @@ -19,18 +19,14 @@ description: > ---*/ var body = "return this;"; -var p = { - toString: function() { - return "z;x" - } -}; +var p={toString:function(){return "z;x"}}; //CHECK#1 try { - var f = new Function(p, body); + var f = new Function(p,body); $ERROR('#1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception'); } catch (e) { if (!(e instanceof SyntaxError)) { - $ERROR('#1.1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception'); + $ERROR('#1.1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception'); } } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T11.js b/test/built-ins/Function/S15.3.2.1_A3_T11.js index 1091a94b3..f547d6973 100644 --- a/test/built-ins/Function/S15.3.2.1_A3_T11.js +++ b/test/built-ins/Function/S15.3.2.1_A3_T11.js @@ -24,7 +24,7 @@ var p = "a,b,c"; try { var f = new Function(p, void 0); } catch (e) { - $ERROR('#1: test failed with error ' + e); + $ERROR('#1: test failed with error '+e); } //CHECK#2 @@ -33,6 +33,6 @@ if (f.constructor !== Function) { } //CHECK#3 -if (f() !== undefined) { +if (f()!==undefined) { $ERROR('#3: When the Function constructor is called with arguments p, body the following steps are taken...'); } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T12.js b/test/built-ins/Function/S15.3.2.1_A3_T12.js index a87f0ba3e..a3698bbfd 100644 --- a/test/built-ins/Function/S15.3.2.1_A3_T12.js +++ b/test/built-ins/Function/S15.3.2.1_A3_T12.js @@ -24,7 +24,7 @@ var p = "a,b,c"; try { var f = new Function(p, undefined); } catch (e) { - $ERROR('#1: test failed with error ' + e); + $ERROR('#1: test failed with error '+e); } //CHECK#2 @@ -33,6 +33,6 @@ if (f.constructor !== Function) { } //CHECK#3 -if (f() !== undefined) { +if (f()!==undefined) { $ERROR('#3: When the Function constructor is called with arguments p, body the following steps are taken...'); } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T13.js b/test/built-ins/Function/S15.3.2.1_A3_T13.js index e2d5c251a..f74d02cf6 100644 --- a/test/built-ins/Function/S15.3.2.1_A3_T13.js +++ b/test/built-ins/Function/S15.3.2.1_A3_T13.js @@ -22,7 +22,7 @@ var p = "a,b,c"; try { var f = new Function(p, null); } catch (e) { - $ERROR('#1: test failed with error ' + e); + $ERROR('#1: test failed with error '+e); } //CHECK#2 @@ -31,6 +31,6 @@ if (f.constructor !== Function) { } //CHECK#3 -if (f() !== undefined) { +if (f()!==undefined) { $ERROR('#3: When the Function constructor is called with arguments p, body the following steps are taken...'); } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T14.js b/test/built-ins/Function/S15.3.2.1_A3_T14.js index 38af3ccdf..0d7a87192 100644 --- a/test/built-ins/Function/S15.3.2.1_A3_T14.js +++ b/test/built-ins/Function/S15.3.2.1_A3_T14.js @@ -24,7 +24,7 @@ var p = "a,b,c"; try { var f = new Function(p, body); } catch (e) { - $ERROR('#1: test failed with error ' + e); + $ERROR('#1: test failed with error '+e); } //CHECK#2 @@ -33,7 +33,7 @@ if (f.constructor !== Function) { } //CHECK#3 -if (f() !== undefined) { +if (f()!==undefined) { $ERROR('#3: When the Function constructor is called with arguments p, body the following steps are taken...'); } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T15.js b/test/built-ins/Function/S15.3.2.1_A3_T15.js index 43796ef88..e3f6eb2bd 100644 --- a/test/built-ins/Function/S15.3.2.1_A3_T15.js +++ b/test/built-ins/Function/S15.3.2.1_A3_T15.js @@ -22,7 +22,7 @@ description: > try { var f = new Function("", ""); } catch (e) { - $ERROR('#1: test failed with error ' + e); + $ERROR('#1: test failed with error '+e); } //CHECK#2 @@ -31,6 +31,6 @@ if (f.constructor !== Function) { } //CHECK#3 -if (f() !== undefined) { +if (f()!==undefined) { $ERROR('#3: When the Function constructor is called with arguments p, body the following steps are taken...'); } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T2.js b/test/built-ins/Function/S15.3.2.1_A3_T2.js index 069ddeabf..1649e9fad 100644 --- a/test/built-ins/Function/S15.3.2.1_A3_T2.js +++ b/test/built-ins/Function/S15.3.2.1_A3_T2.js @@ -18,18 +18,14 @@ description: > "{toString:function(){return 'a';}}" and "return a;" ---*/ -var p = { - toString: function() { - return "a"; - } -}; +var p = {toString:function(){return "a";}}; var body = "return a;"; //CHECK#1 try { - var f = new Function(p, body); + var f = new Function(p,body); } catch (e) { - $ERROR('#1: test failed with error ' + e); + $ERROR('#1: test failed with error '+e); } //CHECK#2 @@ -38,6 +34,6 @@ if (f.constructor !== Function) { } //CHECK#3 -if (f(42) !== 42) { +if (f(42)!==42) { $ERROR('#3: When the Function constructor is called with arguments p, body creates a new Function object as specified in 13.2'); } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T3.js b/test/built-ins/Function/S15.3.2.1_A3_T3.js index 29454c2f9..4ba1f0f48 100644 --- a/test/built-ins/Function/S15.3.2.1_A3_T3.js +++ b/test/built-ins/Function/S15.3.2.1_A3_T3.js @@ -19,25 +19,16 @@ description: > "{toString:function(){throw "body";}}" ---*/ -var p = { - toString: function() { - p = 1; - return "a"; - } -}; -var body = { - toString: function() { - throw "body"; - } -}; +var p = {toString:function(){p=1;return "a";}}; +var body = {toString:function(){throw "body";}}; //CHECK#1 try { - var f = new Function(p, body); + var f = new Function(p,body); $ERROR('#1: test failed'); } catch (e) { if (e !== "body") { - $ERROR('#1.1: i) Let Result(i) be the first argument; ii) Let P be ToString(Result(i))'); + $ERROR('#1.1: i) Let Result(i) be the first argument; ii) Let P be ToString(Result(i))'); } } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T4.js b/test/built-ins/Function/S15.3.2.1_A3_T4.js index 7a0ec0d00..e817ba1b3 100644 --- a/test/built-ins/Function/S15.3.2.1_A3_T4.js +++ b/test/built-ins/Function/S15.3.2.1_A3_T4.js @@ -22,9 +22,9 @@ var body = "return 1.1;"; //CHECK#1 try { - var f = new Function(p, body); + var f = new Function(p,body); } catch (e) { - $ERROR('#1: test failed with error ' + e); + $ERROR('#1: test failed with error '+e); } //CHECK#2 @@ -33,7 +33,7 @@ if (f.constructor !== Function) { } //CHECK#3 -if (f() !== 1.1) { +if (f()!==1.1) { $ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...'); } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T5.js b/test/built-ins/Function/S15.3.2.1_A3_T5.js index 47a69636b..67887edd3 100644 --- a/test/built-ins/Function/S15.3.2.1_A3_T5.js +++ b/test/built-ins/Function/S15.3.2.1_A3_T5.js @@ -22,9 +22,9 @@ var body = "return \"A\";"; //CHECK#1 try { - var f = new Function(void 0, body); + var f = new Function(void 0,body); } catch (e) { - $ERROR('#1: test failed with error ' + e); + $ERROR('#1: test failed with error '+e); } //CHECK#2 @@ -33,6 +33,6 @@ if (f.constructor !== Function) { } //CHECK#3 -if (f() !== '\u0041') { +if (f()!=='\u0041') { $ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...'); } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T6.js b/test/built-ins/Function/S15.3.2.1_A3_T6.js index f39efaffc..129c462f2 100644 --- a/test/built-ins/Function/S15.3.2.1_A3_T6.js +++ b/test/built-ins/Function/S15.3.2.1_A3_T6.js @@ -22,10 +22,10 @@ var body = "return true;"; //CHECK#1 try { - var f = new Function(null, body); + var f = new Function(null,body); $ERROR('#1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception'); } catch (e) { if (!(e instanceof SyntaxError)) { - $ERROR('#1.1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception'); + $ERROR('#1.1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception'); } } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T7.js b/test/built-ins/Function/S15.3.2.1_A3_T7.js index de41763f2..fa680f6b5 100644 --- a/test/built-ins/Function/S15.3.2.1_A3_T7.js +++ b/test/built-ins/Function/S15.3.2.1_A3_T7.js @@ -20,13 +20,13 @@ description: > var body = "return a;"; -var p = Object("a"); +var p=Object("a"); //CHECK#1 try { var f = new Function(p, body); } catch (e) { - $ERROR('#1: test failed with error ' + e); + $ERROR('#1: test failed with error '+e); } //CHECK#2 @@ -35,6 +35,6 @@ if (f.constructor !== Function) { } //CHECK#3 -if (f(1) !== 1) { +if (f(1)!==1) { $ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...'); } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T8.js b/test/built-ins/Function/S15.3.2.1_A3_T8.js index 33d353c92..2e3c36110 100644 --- a/test/built-ins/Function/S15.3.2.1_A3_T8.js +++ b/test/built-ins/Function/S15.3.2.1_A3_T8.js @@ -22,9 +22,9 @@ var body = "return this;"; //CHECK#1 try { - var f = new Function(undefined, body); + var f = new Function(undefined,body); } catch (e) { - $ERROR('#1: test failed with error ' + e); + $ERROR('#1: test failed with error '+e); } //CHECK#2 @@ -33,6 +33,6 @@ if (f.constructor !== Function) { } //CHECK#3 -if (f() !== this) { +if (f()!==this) { $ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...'); } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T9.js b/test/built-ins/Function/S15.3.2.1_A3_T9.js index d4134cb37..4d5d1a042 100644 --- a/test/built-ins/Function/S15.3.2.1_A3_T9.js +++ b/test/built-ins/Function/S15.3.2.1_A3_T9.js @@ -19,14 +19,14 @@ description: > ---*/ var body = "return this;"; -var p = "1,1"; +var p="1,1"; //CHECK#1 try { - var f = new Function(p, body); + var f = new Function(p,body); $ERROR('#1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception'); } catch (e) { if (!(e instanceof SyntaxError)) { - $ERROR('#1.1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception'); + $ERROR('#1.1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception'); } } diff --git a/test/built-ins/Function/S15.3.3_A1.js b/test/built-ins/Function/S15.3.3_A1.js index a498f0131..05200e212 100644 --- a/test/built-ins/Function/S15.3.3_A1.js +++ b/test/built-ins/Function/S15.3.3_A1.js @@ -7,6 +7,6 @@ es5id: 15.3.3_A1 description: Checking existence of the property "prototype" ---*/ -if (!Function.hasOwnProperty("prototype")) { +if(!Function.hasOwnProperty("prototype")){ $ERROR('#1: The Function constructor has the property "prototype"'); } diff --git a/test/built-ins/Function/S15.3.3_A3.js b/test/built-ins/Function/S15.3.3_A3.js index b4fb57879..a22a560d0 100644 --- a/test/built-ins/Function/S15.3.3_A3.js +++ b/test/built-ins/Function/S15.3.3_A3.js @@ -8,7 +8,7 @@ description: Checking Function.length property ---*/ //CHECK#1 -if (!Function.hasOwnProperty("length")) { +if (!Function.hasOwnProperty("length")){ $ERROR('#1: Function constructor has length property'); } diff --git a/test/built-ins/Function/S15.3.5_A2_T2.js b/test/built-ins/Function/S15.3.5_A2_T2.js index 00b25df86..16f1e7ae3 100644 --- a/test/built-ins/Function/S15.3.5_A2_T2.js +++ b/test/built-ins/Function/S15.3.5_A2_T2.js @@ -10,7 +10,7 @@ description: > ---*/ //CHECK#1 -if ((new Function("arg1,arg2", "var x =arg1; this.y=arg2;return arg1+arg2;"))("1", 2) !== "12") { +if ((new Function("arg1,arg2","var x =arg1; this.y=arg2;return arg1+arg2;"))("1",2) !== "12") { $ERROR('#1: Every function instance has a [[Call]] property'); } diff --git a/test/built-ins/Function/S15.3.5_A3_T2.js b/test/built-ins/Function/S15.3.5_A3_T2.js index 5a233d07f..861e754d4 100644 --- a/test/built-ins/Function/S15.3.5_A3_T2.js +++ b/test/built-ins/Function/S15.3.5_A3_T2.js @@ -9,8 +9,8 @@ description: > this.y=arg1+arg2;return \"OK\";") ---*/ -var FACTORY = new Function("arg1,arg2", "var x =1; this.y=arg1+arg2;return \"OK\";"); -var obj = new FACTORY("1", 2); +var FACTORY = new Function("arg1,arg2","var x =1; this.y=arg1+arg2;return \"OK\";"); +var obj = new FACTORY("1",2); //CHECK#1 if (typeof obj !== "object") { diff --git a/test/built-ins/Function/S15.3_A2_T1.js b/test/built-ins/Function/S15.3_A2_T1.js index 92448aaf0..f7cc03dd0 100644 --- a/test/built-ins/Function/S15.3_A2_T1.js +++ b/test/built-ins/Function/S15.3_A2_T1.js @@ -11,10 +11,10 @@ description: Checking if executing "Function.call(this, "var x / = 1;")" fails ---*/ //CHECK# -try { +try{ Function.call(this, "var x / = 1;"); -} catch (e) { +} catch(e){ if (!(e instanceof SyntaxError)) { - $ERROR('#1: function body must be valid'); + $ERROR('#1: function body must be valid'); } } diff --git a/test/built-ins/Function/S15.3_A2_T2.js b/test/built-ins/Function/S15.3_A2_T2.js index 1c3de3f64..6fbc17a5c 100644 --- a/test/built-ins/Function/S15.3_A2_T2.js +++ b/test/built-ins/Function/S15.3_A2_T2.js @@ -11,10 +11,10 @@ description: Checking if executing "Function.call(this, "var #x = 1;")" fails ---*/ //CHECK# -try { +try{ Function.call(this, "var #x = 1;"); -} catch (e) { +} catch(e){ if (!(e instanceof SyntaxError)) { - $ERROR('#1: function body must be valid'); + $ERROR('#1: function body must be valid'); } } diff --git a/test/built-ins/Function/S15.3_A3_T1.js b/test/built-ins/Function/S15.3_A3_T1.js index 8574cfb87..97d3d2ec9 100644 --- a/test/built-ins/Function/S15.3_A3_T1.js +++ b/test/built-ins/Function/S15.3_A3_T1.js @@ -11,11 +11,7 @@ description: First argument is object //CHECK#1 - does not throw var f = Function.call(mars, "return name;"); -var mars = { - name: "mars", - color: "red", - number: 4 -}; +var mars={name:"mars", color:"red", number:4}; var f = Function.call(mars, "this.godname=\"ares\"; return this.color;"); @@ -27,6 +23,6 @@ if (about_mars !== undefined) { } //CHECK#3 -if (this.godname !== "ares" && mars.godname === undefined) { +if (this.godname !== "ares" && mars.godname===undefined) { $ERROR('#3: When applied to the Function object itself, thisArg should be ignored'); } diff --git a/test/built-ins/Function/S15.3_A3_T2.js b/test/built-ins/Function/S15.3_A3_T2.js index aa0fe3961..72f827fea 100644 --- a/test/built-ins/Function/S15.3_A3_T2.js +++ b/test/built-ins/Function/S15.3_A3_T2.js @@ -9,8 +9,8 @@ es5id: 15.3_A3_T2 description: First argument is string and null ---*/ -this.color = "red"; -var planet = "mars"; +this.color="red"; +var planet="mars"; var f = Function.call("blablastring", "return this.color;"); diff --git a/test/built-ins/Function/S15.3_A3_T3.js b/test/built-ins/Function/S15.3_A3_T3.js index 7ac27927d..7c2b0d6d7 100644 --- a/test/built-ins/Function/S15.3_A3_T3.js +++ b/test/built-ins/Function/S15.3_A3_T3.js @@ -9,15 +9,15 @@ es5id: 15.3_A3_T3 description: First argument is this, and this don`t have needed variable ---*/ -var f = Function.call(this, "return planet;"); -var g = Function.call(this, "return color;"); +var f=Function.call(this, "return planet;"); +var g=Function.call(this, "return color;"); //CHECK#1 -if (f() !== undefined) { +if (f()!==undefined) { $ERROR('#1: '); } -var planet = "mars"; +var planet="mars"; //CHECK#2 if (f() !== "mars") { @@ -25,15 +25,15 @@ if (f() !== "mars") { } //CHECK#3 -try { +try{ g(); $ERROR('#3: '); -} catch (e) { +} catch(e){ if (!(e instanceof ReferenceError)) - $ERROR('#3.1: '); -} + $ERROR('#3.1: '); +} -this.color = "red"; +this.color="red"; //CHECK#4 if (g() !== "red") { diff --git a/test/built-ins/Function/S15.3_A3_T4.js b/test/built-ins/Function/S15.3_A3_T4.js index 769f6bbb4..69c045d2d 100644 --- a/test/built-ins/Function/S15.3_A3_T4.js +++ b/test/built-ins/Function/S15.3_A3_T4.js @@ -9,14 +9,14 @@ es5id: 15.3_A3_T4 description: First argument is this, and this have needed variable ---*/ -var f = Function.call(this, "return planet;"); +var f=Function.call(this, "return planet;"); //CHECK#1 if (f() !== undefined) { $ERROR('#1: '); -} +} -var planet = "mars"; +var planet="mars"; //CHECK#2 if (f() !== "mars") { diff --git a/test/built-ins/Function/S15.3_A3_T5.js b/test/built-ins/Function/S15.3_A3_T5.js index 753410f5c..3129b520c 100644 --- a/test/built-ins/Function/S15.3_A3_T5.js +++ b/test/built-ins/Function/S15.3_A3_T5.js @@ -11,15 +11,15 @@ description: > Function return this.var_name ---*/ -var f = Function.call(this, "return this.planet;"); -var g = Function.call(this, "return this.color;"); +var f=Function.call(this, "return this.planet;"); +var g=Function.call(this, "return this.color;"); //CHECK#1 if (f() !== undefined) { $ERROR('#2: '); } -var planet = "mars"; +var planet="mars"; //CHECK#2 if (f() !== "mars") { @@ -29,9 +29,9 @@ if (f() !== "mars") { //CHECK#3 if (g() !== undefined) { $ERROR('#3: '); -} +} -this.color = "red"; +this.color="red"; //CHECK#4 if (g() !== "red") { diff --git a/test/built-ins/Function/S15.3_A3_T6.js b/test/built-ins/Function/S15.3_A3_T6.js index fa88d7e5a..44af50aaa 100644 --- a/test/built-ins/Function/S15.3_A3_T6.js +++ b/test/built-ins/Function/S15.3_A3_T6.js @@ -11,14 +11,14 @@ description: > return this.var_name ---*/ -var f = Function.call(this, "return this.planet;"); +var f=Function.call(this, "return this.planet;"); //CHECK#1 if (f() !== undefined) { $ERROR('#1: '); -} +} -var planet = "mars"; +var planet="mars"; //CHECK#2 if (f() !== "mars") { diff --git a/test/built-ins/Function/length/15.3.3.2-1.js b/test/built-ins/Function/length/15.3.3.2-1.js index 5371dbf61..84c73661f 100644 --- a/test/built-ins/Function/length/15.3.3.2-1.js +++ b/test/built-ins/Function/length/15.3.3.2-1.js @@ -6,7 +6,7 @@ es5id: 15.3.3.2-1 description: Function.length - data property with value 1 ---*/ -var desc = Object.getOwnPropertyDescriptor(Function, "length"); + var desc = Object.getOwnPropertyDescriptor(Function,"length"); assert.sameValue(desc.value, 1, 'desc.value'); assert.sameValue(desc.writable, false, 'desc.writable'); diff --git a/test/built-ins/Function/length/S15.3.5.1_A1_T2.js b/test/built-ins/Function/length/S15.3.5.1_A1_T2.js index 0ee96c124..2a8ee4e26 100644 --- a/test/built-ins/Function/length/S15.3.5.1_A1_T2.js +++ b/test/built-ins/Function/length/S15.3.5.1_A1_T2.js @@ -11,7 +11,7 @@ description: > null) ---*/ -var f = Function("arg1,arg2,arg3", "arg4,arg5", null); +var f = Function("arg1,arg2,arg3","arg4,arg5", null); //CHECK#1 if (!(f.hasOwnProperty('length'))) { diff --git a/test/built-ins/Function/length/S15.3.5.1_A1_T3.js b/test/built-ins/Function/length/S15.3.5.1_A1_T3.js index ff5452aaa..09f5776a6 100644 --- a/test/built-ins/Function/length/S15.3.5.1_A1_T3.js +++ b/test/built-ins/Function/length/S15.3.5.1_A1_T3.js @@ -11,7 +11,7 @@ description: > Function("arg1,arg2,arg3","arg1,arg2","arg3", null) ---*/ -var f = new Function("arg1,arg2,arg3", "arg1,arg2", "arg3", null); +var f = new Function("arg1,arg2,arg3","arg1,arg2","arg3", null); //CHECK#1 if (!(f.hasOwnProperty('length'))) { diff --git a/test/built-ins/Function/length/S15.3.5.1_A2_T1.js b/test/built-ins/Function/length/S15.3.5.1_A2_T1.js index 2e773dda3..ccc4b1043 100644 --- a/test/built-ins/Function/length/S15.3.5.1_A2_T1.js +++ b/test/built-ins/Function/length/S15.3.5.1_A2_T1.js @@ -17,7 +17,7 @@ if (!(f.hasOwnProperty('length'))) { } //CHECK#2 -if (!delete f.length) { +if(!delete f.length){ $ERROR('#2: the function.length property does not have the attributes DontDelete.'); } diff --git a/test/built-ins/Function/length/S15.3.5.1_A2_T2.js b/test/built-ins/Function/length/S15.3.5.1_A2_T2.js index dc6f91375..7684cd918 100644 --- a/test/built-ins/Function/length/S15.3.5.1_A2_T2.js +++ b/test/built-ins/Function/length/S15.3.5.1_A2_T2.js @@ -9,7 +9,7 @@ description: > Function("arg1,arg2,arg3","arg4,arg5", null) succeeds ---*/ -var f = Function("arg1,arg2,arg3", "arg4,arg5", null); +var f = Function("arg1,arg2,arg3","arg4,arg5", null); //CHECK#1 if (!(f.hasOwnProperty('length'))) { diff --git a/test/built-ins/Function/length/S15.3.5.1_A2_T3.js b/test/built-ins/Function/length/S15.3.5.1_A2_T3.js index 882152b04..f65035071 100644 --- a/test/built-ins/Function/length/S15.3.5.1_A2_T3.js +++ b/test/built-ins/Function/length/S15.3.5.1_A2_T3.js @@ -9,7 +9,7 @@ description: > Function("arg1,arg2,arg3","arg1,arg2","arg3", null) succeeds ---*/ -var f = new Function("arg1,arg2,arg3", "arg1,arg2", "arg3", null); +var f = new Function("arg1,arg2,arg3","arg1,arg2","arg3", null); //CHECK#1 if (!(f.hasOwnProperty('length'))) { diff --git a/test/built-ins/Function/length/S15.3.5.1_A3_T1.js b/test/built-ins/Function/length/S15.3.5.1_A3_T1.js index 02d981a45..c10714b3f 100644 --- a/test/built-ins/Function/length/S15.3.5.1_A3_T1.js +++ b/test/built-ins/Function/length/S15.3.5.1_A3_T1.js @@ -10,7 +10,7 @@ description: > includes: [propertyHelper.js] ---*/ -var f = new Function("arg1,arg2,arg3", "arg4,arg5", null); +var f = new Function("arg1,arg2,arg3","arg4,arg5", null); //CHECK#1 if (!(f.hasOwnProperty('length'))) { @@ -19,7 +19,7 @@ if (!(f.hasOwnProperty('length'))) { var flength = f.length; -verifyNotWritable(f, "length", null, function() {}); +verifyNotWritable(f, "length", null, function(){}); //CHECK#2 if (f.length !== flength) { diff --git a/test/built-ins/Function/length/S15.3.5.1_A3_T2.js b/test/built-ins/Function/length/S15.3.5.1_A3_T2.js index e6cb737b3..2482faecd 100644 --- a/test/built-ins/Function/length/S15.3.5.1_A3_T2.js +++ b/test/built-ins/Function/length/S15.3.5.1_A3_T2.js @@ -10,7 +10,7 @@ description: > includes: [propertyHelper.js] ---*/ -var f = Function("arg1,arg2,arg3", null); +var f = Function("arg1,arg2,arg3", null); //CHECK#1 if (!(f.hasOwnProperty('length'))) { @@ -19,7 +19,7 @@ if (!(f.hasOwnProperty('length'))) { var flength = f.length; -verifyNotWritable(f, "length", null, function() {}); +verifyNotWritable(f, "length", null, function(){}); //CHECK#2 if (f.length !== flength) { diff --git a/test/built-ins/Function/length/S15.3.5.1_A3_T3.js b/test/built-ins/Function/length/S15.3.5.1_A3_T3.js index 818d82d63..ed321e683 100644 --- a/test/built-ins/Function/length/S15.3.5.1_A3_T3.js +++ b/test/built-ins/Function/length/S15.3.5.1_A3_T3.js @@ -10,7 +10,7 @@ description: > includes: [propertyHelper.js] ---*/ -var f = new Function("arg1,arg2,arg3", "arg1,arg2", "arg3", null); +var f = new Function("arg1,arg2,arg3","arg1,arg2","arg3", null); //CHECK#1 if (!(f.hasOwnProperty('length'))) { @@ -19,7 +19,7 @@ if (!(f.hasOwnProperty('length'))) { var flength = f.length; -verifyNotWritable(f, "length", null, function() {}); +verifyNotWritable(f, "length", null, function(){}); //CHECK#2 if (f.length !== flength) { diff --git a/test/built-ins/Function/length/S15.3.5.1_A4_T1.js b/test/built-ins/Function/length/S15.3.5.1_A4_T1.js index 894c65e92..14f9cc410 100644 --- a/test/built-ins/Function/length/S15.3.5.1_A4_T1.js +++ b/test/built-ins/Function/length/S15.3.5.1_A4_T1.js @@ -16,10 +16,10 @@ if (!(f.hasOwnProperty('length'))) { $ERROR('#1: the function has length property.'); } -for (var key in f) - if (key == "length") - var lengthenumed = true; - +for(var key in f) + if(key=="length") + var lengthenumed=true; + //CHECK#2 if (lengthenumed) { $ERROR('#2: the length property has the attributes { DontEnum }'); diff --git a/test/built-ins/Function/length/S15.3.5.1_A4_T2.js b/test/built-ins/Function/length/S15.3.5.1_A4_T2.js index 8e1d150c6..c67c5f6a5 100644 --- a/test/built-ins/Function/length/S15.3.5.1_A4_T2.js +++ b/test/built-ins/Function/length/S15.3.5.1_A4_T2.js @@ -9,17 +9,17 @@ description: > Function("arg1,arg2,arg3","arg4,arg5", null) fails ---*/ -var f = Function("arg1,arg2,arg3", "arg5,arg4", null); +var f = Function("arg1,arg2,arg3","arg5,arg4", null); //CHECK#1 if (!(f.hasOwnProperty('length'))) { $ERROR('#1: the function has length property.'); } -for (var key in f) - if (key == "length") - var lengthenumed = true; - +for(var key in f) + if(key=="length") + var lengthenumed=true; + //CHECK#2 if (lengthenumed) { $ERROR('#2: the length property has the attributes { DontEnum }'); diff --git a/test/built-ins/Function/length/S15.3.5.1_A4_T3.js b/test/built-ins/Function/length/S15.3.5.1_A4_T3.js index 44e16e8f8..cdf721374 100644 --- a/test/built-ins/Function/length/S15.3.5.1_A4_T3.js +++ b/test/built-ins/Function/length/S15.3.5.1_A4_T3.js @@ -9,17 +9,17 @@ description: > Function("arg1,arg2,arg3","arg1,arg2","arg3", null) fails ---*/ -var f = new Function("arg1,arg2,arg3", "arg1,arg2", "arg3", null); +var f = new Function("arg1,arg2,arg3","arg1,arg2","arg3", null); //CHECK#1 if (!(f.hasOwnProperty('length'))) { $ERROR('#1: the function has length property.'); } -for (var key in f) - if (key == "length") - var lengthenumed = true; - +for(var key in f) + if(key=="length") + var lengthenumed=true; + //CHECK#2 if (lengthenumed) { $ERROR('#2: the length property has the attributes { DontEnum }'); diff --git a/test/built-ins/Function/prototype/S15.3.3.1_A1.js b/test/built-ins/Function/prototype/S15.3.3.1_A1.js index f06c15489..af9795ab9 100644 --- a/test/built-ins/Function/prototype/S15.3.3.1_A1.js +++ b/test/built-ins/Function/prototype/S15.3.3.1_A1.js @@ -10,9 +10,7 @@ includes: [propertyHelper.js] var obj = Function.prototype; -verifyNotWritable(Function, "prototype", null, function() { - return "shifted"; -}); +verifyNotWritable(Function, "prototype", null, function(){return "shifted";}); //CHECK#1 if (Function.prototype !== obj) { @@ -21,9 +19,9 @@ if (Function.prototype !== obj) { //CHECK#2 try { - if (Function.prototype() !== undefined) { - $ERROR('#2: the Function.prototype property has the attributes ReadOnly'); + if(Function.prototype()!==undefined){ + $ERROR('#2: the Function.prototype property has the attributes ReadOnly'); } } catch (e) { - $ERROR('#2.1: the Function.prototype property has the attributes ReadOnly: ' + e); + $ERROR('#2.1: the Function.prototype property has the attributes ReadOnly: '+e); } diff --git a/test/built-ins/Function/prototype/S15.3.3.1_A2.js b/test/built-ins/Function/prototype/S15.3.3.1_A2.js index 8642fe1d6..280e6d3a5 100644 --- a/test/built-ins/Function/prototype/S15.3.3.1_A2.js +++ b/test/built-ins/Function/prototype/S15.3.3.1_A2.js @@ -13,10 +13,10 @@ if (Function.propertyIsEnumerable('prototype')) { } // CHECK#2 -var count = 0; +var count=0; -for (var p in Function) { - if (p === "prototype") count++; +for (var p in Function){ + if (p==="prototype") count++; } if (count !== 0) { diff --git a/test/built-ins/Function/prototype/S15.3.3.1_A4.js b/test/built-ins/Function/prototype/S15.3.3.1_A4.js index 9feac6cb2..17f5d057b 100644 --- a/test/built-ins/Function/prototype/S15.3.3.1_A4.js +++ b/test/built-ins/Function/prototype/S15.3.3.1_A4.js @@ -15,10 +15,8 @@ description: > function foo() {} -Object.defineProperty(foo, 'prototype', { - value: {} -}); +Object.defineProperty(foo, 'prototype', { value: {} }); if (foo.prototype !== - Object.getOwnPropertyDescriptor(foo, 'prototype').value) { + Object.getOwnPropertyDescriptor(foo, 'prototype').value) { $ERROR("A function.prototype's descriptor lies"); } diff --git a/test/built-ins/Function/prototype/S15.3.4_A1.js b/test/built-ins/Function/prototype/S15.3.4_A1.js index b54a90c55..b1b163bb5 100644 --- a/test/built-ins/Function/prototype/S15.3.4_A1.js +++ b/test/built-ins/Function/prototype/S15.3.4_A1.js @@ -11,5 +11,5 @@ description: Object.prototype.toString returns [object+[[Class]]+] if (Object.prototype.toString.call(Function.prototype) !== "[object Function]") { $ERROR('#2: The Function prototype object is itself a Function ' + - 'object (its [[Class]] is "Function") (15.3.4)'); + 'object (its [[Class]] is "Function") (15.3.4)'); } diff --git a/test/built-ins/Function/prototype/S15.3.4_A2_T1.js b/test/built-ins/Function/prototype/S15.3.4_A2_T1.js index cd8afff2f..ebfcef721 100644 --- a/test/built-ins/Function/prototype/S15.3.4_A2_T1.js +++ b/test/built-ins/Function/prototype/S15.3.4_A2_T1.js @@ -15,5 +15,5 @@ try { $ERROR('#1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined'); } } catch (e) { - $ERROR('#1.1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined: ' + e); + $ERROR('#1.1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined: '+e); } diff --git a/test/built-ins/Function/prototype/S15.3.4_A2_T2.js b/test/built-ins/Function/prototype/S15.3.4_A2_T2.js index 5ddc03b77..48dffef53 100644 --- a/test/built-ins/Function/prototype/S15.3.4_A2_T2.js +++ b/test/built-ins/Function/prototype/S15.3.4_A2_T2.js @@ -11,9 +11,9 @@ description: Call Function.prototype(null,void 0) //CHECK#1 try { - if (Function.prototype(null, void 0) !== undefined) { + if (Function.prototype(null,void 0) !== undefined) { $ERROR('#1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined'); } } catch (e) { - $ERROR('#1.1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined: ' + e); + $ERROR('#1.1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined: '+e); } diff --git a/test/built-ins/Function/prototype/S15.3.4_A2_T3.js b/test/built-ins/Function/prototype/S15.3.4_A2_T3.js index 5b4b159cd..f72522a14 100644 --- a/test/built-ins/Function/prototype/S15.3.4_A2_T3.js +++ b/test/built-ins/Function/prototype/S15.3.4_A2_T3.js @@ -16,5 +16,5 @@ try { $ERROR('#1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined'); } } catch (e) { - $ERROR('#1.1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined: ' + e); + $ERROR('#1.1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined: '+e); } diff --git a/test/built-ins/Function/prototype/S15.3.4_A3_T1.js b/test/built-ins/Function/prototype/S15.3.4_A3_T1.js index 7f8550234..2d31234ce 100644 --- a/test/built-ins/Function/prototype/S15.3.4_A3_T1.js +++ b/test/built-ins/Function/prototype/S15.3.4_A3_T1.js @@ -11,6 +11,6 @@ description: Checking prototype of Function.prototype if (Object.getPrototypeOf(Function.prototype) !== Object.prototype) { $ERROR('#1: The value of the internal [[Prototype]] property of ' + - 'the Function prototype object is the Object prototype ' + - 'object (15.3.4)'); + 'the Function prototype object is the Object prototype ' + + 'object (15.3.4)'); } diff --git a/test/built-ins/Function/prototype/S15.3.4_A3_T2.js b/test/built-ins/Function/prototype/S15.3.4_A3_T2.js index eb6eaa1aa..5fdee9b54 100644 --- a/test/built-ins/Function/prototype/S15.3.4_A3_T2.js +++ b/test/built-ins/Function/prototype/S15.3.4_A3_T2.js @@ -14,6 +14,6 @@ description: > Object.prototype.indicator = 1; //CHECK#1 -if (Function.prototype.indicator !== 1) { +if (Function.prototype.indicator!==1) { $ERROR('#1: The value of the internal [[Prototype]] property of the Function prototype object is the Object prototype object (15.3.2.1)'); } diff --git a/test/built-ins/Function/prototype/Symbol.hasInstance/this-val-poisoned-prototype.js b/test/built-ins/Function/prototype/Symbol.hasInstance/this-val-poisoned-prototype.js index 8e97762be..33d46760d 100644 --- a/test/built-ins/Function/prototype/Symbol.hasInstance/this-val-poisoned-prototype.js +++ b/test/built-ins/Function/prototype/Symbol.hasInstance/this-val-poisoned-prototype.js @@ -16,9 +16,7 @@ features: [Symbol.hasInstance] ---*/ // Create a callable object without a `prototype` property -var f = Object.getOwnPropertyDescriptor({ - get f() {} -}, 'f').get; +var f = Object.getOwnPropertyDescriptor({ get f() {} }, 'f').get; Object.defineProperty(f, 'prototype', { get: function() { diff --git a/test/built-ins/Function/prototype/apply/15.3.4.3-1-s.js b/test/built-ins/Function/prototype/apply/15.3.4.3-1-s.js index daeed835d..7ee954176 100644 --- a/test/built-ins/Function/prototype/apply/15.3.4.3-1-s.js +++ b/test/built-ins/Function/prototype/apply/15.3.4.3-1-s.js @@ -10,8 +10,8 @@ description: > flags: [onlyStrict] ---*/ -function fun() { - return (this instanceof String); -} + function fun() { + return (this instanceof String); + } assert.sameValue(fun.apply("", Array), false, 'fun.apply("", Array)'); diff --git a/test/built-ins/Function/prototype/apply/15.3.4.3-2-s.js b/test/built-ins/Function/prototype/apply/15.3.4.3-2-s.js index 0c792e14a..a717204bd 100644 --- a/test/built-ins/Function/prototype/apply/15.3.4.3-2-s.js +++ b/test/built-ins/Function/prototype/apply/15.3.4.3-2-s.js @@ -10,8 +10,8 @@ description: > flags: [onlyStrict] ---*/ -function fun() { - return (this instanceof Number); -} + function fun() { + return (this instanceof Number); + } assert.sameValue(fun.apply(-12, Array), false, 'fun.apply(-12, Array)'); diff --git a/test/built-ins/Function/prototype/apply/15.3.4.3-3-s.js b/test/built-ins/Function/prototype/apply/15.3.4.3-3-s.js index f62f5d967..762c5c593 100644 --- a/test/built-ins/Function/prototype/apply/15.3.4.3-3-s.js +++ b/test/built-ins/Function/prototype/apply/15.3.4.3-3-s.js @@ -10,8 +10,8 @@ description: > flags: [onlyStrict] ---*/ -function fun() { - return (this instanceof Boolean); -} + function fun() { + return (this instanceof Boolean); + } assert.sameValue(fun.apply(false, Array), false, 'fun.apply(false, Array)'); diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A10.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A10.js index 244c35acd..ce9541aa0 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A10.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A10.js @@ -17,9 +17,7 @@ if (!(Function.prototype.apply.hasOwnProperty('length'))) { var obj = Function.prototype.apply.length; -verifyNotWritable(Function.prototype.apply, "length", null, function() { - return "shifted"; -}); +verifyNotWritable(Function.prototype.apply, "length", null, function(){return "shifted";}); //CHECK#2 if (Function.prototype.apply.length !== obj) { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A11.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A11.js index dcab5610c..18da556b6 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A11.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A11.js @@ -21,7 +21,7 @@ if (Function.prototype.apply.propertyIsEnumerable('length')) { } // CHECK#2 -for (var p in Function.prototype.apply) { - if (p === "length") - $ERROR('#2: the Function.prototype.apply.length property has the attributes DontEnum'); +for (var p in Function.prototype.apply){ + if (p==="length") + $ERROR('#2: the Function.prototype.apply.length property has the attributes DontEnum'); } diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A12.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A12.js index 50ea57ee8..c84faf776 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A12.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A12.js @@ -11,5 +11,5 @@ description: > //CHECK#1 if (Function.prototype.apply.prototype !== undefined) { - $ERROR('#1: Function.prototype.apply has not prototype property' + Function.prototype.apply.prototype); + $ERROR('#1: Function.prototype.apply has not prototype property'+Function.prototype.apply.prototype); } diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A16.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A16.js index bf25dfed3..ce11c7e88 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A16.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A16.js @@ -17,7 +17,7 @@ if (typeof re === 'function') { try { Function.prototype.bind.call(re, undefined); $ERROR('#1: If IsCallable(func) is false, ' + - 'then (bind should) throw a TypeError exception'); + 'then (bind should) throw a TypeError exception'); } catch (e) { if (!(e instanceof TypeError)) { $ERROR('#1: TypeError expected. Actual: ' + e); diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T1.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T1.js index 77e0ffe08..c8a7711c8 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T1.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T1.js @@ -12,11 +12,11 @@ description: > property. Prototype of the object is Function() ---*/ -var proto = Function(); +var proto=Function(); -function FACTORY() {}; +function FACTORY(){}; -FACTORY.prototype = proto; +FACTORY.prototype=proto; var obj = new FACTORY; @@ -31,6 +31,6 @@ try { $ERROR('#2: If the object does not have a [[Call]] property, a TypeError exception is thrown'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#2.1: If the object does not have a [[Call]] property, a TypeError exception is thrown'); + $ERROR('#2.1: If the object does not have a [[Call]] property, a TypeError exception is thrown'); } } diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T2.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T2.js index ad2b14770..8d65c78db 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T2.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T2.js @@ -12,9 +12,9 @@ description: > property. Prototype of the object is Function.prototype ---*/ -function FACTORY() {}; +function FACTORY(){}; -FACTORY.prototype = Function.prototype; +FACTORY.prototype=Function.prototype; var obj = new FACTORY; @@ -29,6 +29,6 @@ try { $ERROR('#2: If the object does not have a [[Call]] property, a TypeError exception is thrown'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#2.1: If the object does not have a [[Call]] property, a TypeError exception is thrown'); + $ERROR('#2.1: If the object does not have a [[Call]] property, a TypeError exception is thrown'); } } diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A2_T2.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A2_T2.js index 872e46597..a56a6b4d1 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A2_T2.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A2_T2.js @@ -7,7 +7,7 @@ es5id: 15.3.4.3_A2_T2 description: Checking f.apply.length, where f is new Function ---*/ -var f = new Function; +var f=new Function; //CHECK#1 if (typeof f.apply !== "function") { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T5.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T5.js index 2864ae8e3..b2667397c 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T5.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T5.js @@ -11,7 +11,7 @@ description: > declaration ---*/ -function FACTORY() { +function FACTORY(){ Function("this.feat=\"in da haus\"").apply(); }; diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T6.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T6.js index c4fe40482..de2baaba0 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T6.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T6.js @@ -12,10 +12,8 @@ description: > flags: [noStrict] ---*/ -function FACTORY() { - (function() { - this.feat = "kamon beyba" - }).apply(null); +function FACTORY(){ + (function(){this.feat="kamon beyba"}).apply(null); }; var obj = new FACTORY; diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T7.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T7.js index 1065e8d27..7138f11cd 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T7.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T7.js @@ -11,7 +11,7 @@ description: > declaration ---*/ -(function FACTORY() { +(function FACTORY(){ Function("this.feat=\"in da haus\"").apply(void 0); })(); diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T8.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T8.js index 94449eb37..bec48bd99 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T8.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T8.js @@ -12,10 +12,8 @@ description: > flags: [noStrict] ---*/ -(function FACTORY() { - (function() { - this.feat = "kamon beyba" - }).apply(undefined); +(function FACTORY(){ + (function(){this.feat="kamon beyba"}).apply(undefined); })(); //CHECK#1 diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T9.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T9.js index 4fe65248a..e7055f830 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T9.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T9.js @@ -9,7 +9,7 @@ es5id: 15.3.4.3_A3_T9 description: Checking by using eval, argument at apply function is void 0 ---*/ -eval(" Function(\"this.feat=1\").apply(void 0) "); +eval( " Function(\"this.feat=1\").apply(void 0) " ); //CHECK#1 if (this["feat"] !== 1) { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T1.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T1.js index 937f8cb9f..b0a73eab7 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T1.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T1.js @@ -9,7 +9,7 @@ es5id: 15.3.4.3_A5_T1 description: thisArg is number ---*/ -var obj = 1; +var obj=1; var retobj = Function("this.touched= true; return this;").apply(obj); diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T2.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T2.js index 79d6cf816..88e6a92cb 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T2.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T2.js @@ -9,7 +9,7 @@ es5id: 15.3.4.3_A5_T2 description: thisArg is boolean true ---*/ -var obj = true; +var obj=true; var retobj = new Function("this.touched= true; return this;").apply(obj); diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T3.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T3.js index eeb07e45e..8ec4feae5 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T3.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T3.js @@ -10,12 +10,9 @@ description: thisArg is string flags: [noStrict] ---*/ -var obj = "soap"; +var obj="soap"; -var retobj = (function() { - this.touched = true; - return this; -}).apply(obj); +var retobj = ( function(){this.touched= true; return this;} ).apply(obj); //CHECK#1 if (typeof obj.touched !== "undefined") { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T4.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T4.js index 527311ae9..65230c6eb 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T4.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T4.js @@ -10,10 +10,7 @@ description: thisArg is function variable that return this flags: [noStrict] ---*/ -f = function() { - this.touched = true; - return this; -}; +f = function(){this.touched= true; return this;}; retobj = f.apply(obj); diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T5.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T5.js index 8d88bfdd1..b4947b223 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T5.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T5.js @@ -9,11 +9,9 @@ es5id: 15.3.4.3_A5_T5 description: thisArg is function variable ---*/ -var f = function() { - this.touched = true; -}; +var f = function(){this.touched= true;}; -var obj = {}; +var obj={}; f.apply(obj); diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T6.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T6.js index ffabe93c3..3a852f770 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T6.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T6.js @@ -9,11 +9,9 @@ es5id: 15.3.4.3_A5_T6 description: thisArg is new String() ---*/ -var obj = new String("soap"); +var obj=new String("soap"); -(function() { - this.touched = true; -}).apply(obj); +( function(){this.touched= true;}).apply(obj); //CHECK#1 if (!(obj.touched)) { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T7.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T7.js index f99dfe61f..3aea79d4c 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T7.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T7.js @@ -9,7 +9,7 @@ es5id: 15.3.4.3_A5_T7 description: thisArg is new Number() ---*/ -var obj = new Number(1); +var obj=new Number(1); Function("this.touched= true;").apply(obj); diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T8.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T8.js index 26ce5a6ec..3e7ff7743 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T8.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T8.js @@ -9,7 +9,7 @@ es5id: 15.3.4.3_A5_T8 description: thisArg is Function() ---*/ -var obj = Function(); +var obj=Function(); new Function("this.touched= true; return this;").apply(obj); diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T2.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T2.js index a21265dd3..ddeca4bbb 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T2.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T2.js @@ -11,10 +11,10 @@ description: argArray is (null,1) //CHECK#1 try { - Function().apply(null, 1); + Function().apply(null,1); $ERROR('#1: if argArray is neither an array nor an arguments object (see 10.1.8), a TypeError exception is thrown'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#1.1: if argArray is neither an array nor an arguments object (see 10.1.8), a TypeError exception is thrown'); + $ERROR('#1.1: if argArray is neither an array nor an arguments object (see 10.1.8), a TypeError exception is thrown'); } } diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T3.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T3.js index 313e89d79..2fa2501c3 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T3.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T3.js @@ -9,14 +9,14 @@ es5id: 15.3.4.3_A6_T3 description: argArray is (object,"1,3,4") ---*/ -var obj = {}; +var obj={}; //CHECK#1 try { - Function().apply(obj, "1,3,4"); + Function().apply(obj,"1,3,4"); $ERROR('#1: if argArray is neither an array nor an arguments object (see 10.1.8), a TypeError exception is thrown'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#1.1: if argArray is neither an array nor an arguments object (see 10.1.8), a TypeError exception is thrown'); + $ERROR('#1.1: if argArray is neither an array nor an arguments object (see 10.1.8), a TypeError exception is thrown'); } } diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T1.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T1.js index 018dcc7bd..afa24ed01 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T1.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T1.js @@ -9,7 +9,7 @@ es5id: 15.3.4.3_A7_T1 description: argArray is (null,[1]) ---*/ -Function("a1,a2,a3", "this.shifted=a1;").apply(null, [1]); +Function("a1,a2,a3","this.shifted=a1;").apply(null,[1]); //CHECK#1 if (this["shifted"] !== 1) { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T10.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T10.js index 7a77fd2d1..8e518ebd6 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T10.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T10.js @@ -11,11 +11,11 @@ description: > without declaration used ---*/ -var obj = {}; +var obj={}; -(function() { - Function("a1,a2,a3", "this.shifted=a1+a2+a3;").apply(obj, arguments); -})("", 4, 2); +(function (){ + Function("a1,a2,a3","this.shifted=a1+a2+a3;").apply(obj,arguments); +})("",4,2); //CHECK#1 if (obj["shifted"] !== "42") { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T2.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T2.js index f54f65d30..fbfadbdb7 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T2.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T2.js @@ -9,7 +9,7 @@ es5id: 15.3.4.3_A7_T2 description: argArray is (null,[1,2,3]) ---*/ -new Function("a1,a2", "a3", "this.shifted=a2;").apply(null, [1, 2, 3]); +new Function("a1,a2","a3","this.shifted=a2;").apply(null,[1,2,3]); //CHECK#1 if (this["shifted"] !== 2) { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T3.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T3.js index d4ce5fc1d..1f27d4ef2 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T3.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T3.js @@ -9,17 +9,13 @@ es5id: 15.3.4.3_A7_T3 description: argArray is (empty object, new Array("nine","inch","nails")) ---*/ -var i = 0; +var i=0; -var p = { - toString: function() { - return "a" + (++i); - } -}; +var p={toString:function(){return "a"+(++i);}}; -var obj = {}; +var obj={}; -Function(p, "a2,a3", "this.shifted=a1;").apply(obj, new Array("nine", "inch", "nails")); +Function(p,"a2,a3","this.shifted=a1;").apply(obj, new Array("nine","inch","nails")); //CHECK#1 if (obj["shifted"] !== "nine") { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T4.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T4.js index 9a747b4a1..a88cc9e73 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T4.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T4.js @@ -11,19 +11,13 @@ description: > ("a","b","c")) ---*/ -var i = 0; +var i=0; -var p = { - toString: function() { - return "a" + (++i); - } -}; +var p={toString:function(){return "a"+(++i);}}; -var obj = {}; +var obj={}; -new Function(p, p, p, "this.shifted=a3;").apply(obj, (function() { - return arguments; -})("a", "b", "c")); +new Function(p,p,p, "this.shifted=a3;").apply( obj,( function(){return arguments;}) ("a","b","c") ); //CHECK#1 if (obj["shifted"] !== "c") { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T5.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T5.js index 44ab20da0..26d0b1a28 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T5.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T5.js @@ -9,11 +9,11 @@ es5id: 15.3.4.3_A7_T5 description: argArray is (null, arguments), inside function declaration used ---*/ -function FACTORY() { - Function("a1,a2,a3", "this.shifted=a1+a2+a3;").apply(null, arguments); +function FACTORY(){ + Function("a1,a2,a3","this.shifted=a1+a2+a3;").apply(null,arguments); } -var obj = new FACTORY("", 1, 2); +var obj=new FACTORY("",1,2); //CHECK#1 if (this["shifted"] !== "12") { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T6.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T6.js index 23e9ac8ec..2e2f76d64 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T6.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T6.js @@ -9,11 +9,11 @@ es5id: 15.3.4.3_A7_T6 description: argArray is (this, arguments), inside function declaration used ---*/ -function FACTORY() { - Function("a1,a2,a3", "this.shifted=a1+a2+a3;").apply(this, arguments); +function FACTORY(){ + Function("a1,a2,a3","this.shifted=a1+a2+a3;").apply(this,arguments); } -var obj = new FACTORY("", 4, 2); +var obj=new FACTORY("",4,2); //CHECK#1 if (obj["shifted"] !== "42") { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T7.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T7.js index 59dbd059a..0ee4e41ee 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T7.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T7.js @@ -11,9 +11,9 @@ description: > declaration used ---*/ -(function() { - Function("a1,a2,a3", "this.shifted=a1+a2+a3;").apply(null, arguments); -})("", 1, 2); +(function (){ + Function("a1,a2,a3","this.shifted=a1+a2+a3;").apply(null,arguments); +})("",1,2); //CHECK#1 if (this["shifted"] !== "12") { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T8.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T8.js index f0c0215cd..b3cf86486 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T8.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T8.js @@ -11,9 +11,9 @@ description: > declaration used ---*/ -(function() { - Function("a1,a2,a3", "this.shifted=a1+a2+a3;").apply(this, arguments); -})("", 4, 2); +(function (){ + Function("a1,a2,a3","this.shifted=a1+a2+a3;").apply(this,arguments); +})("",4,2); //CHECK#2 if (this["shifted"] !== "42") { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T9.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T9.js index d478bc629..8781ceff1 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T9.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T9.js @@ -11,13 +11,13 @@ description: > used ---*/ -function FACTORY() { +function FACTORY(){ var obj = {}; - Function("a1,a2,a3", "this.shifted=a1+a2+a3;").apply(obj, arguments); + Function("a1,a2,a3","this.shifted=a1+a2+a3;").apply(obj,arguments); return obj; } -var obj = new FACTORY("", 1, 2); +var obj=new FACTORY("",1,2); //CHECK#1 if (typeof this["shifted"] !== "undefined") { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T4.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T4.js index 75eeb6534..0279d3e1e 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T4.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T4.js @@ -8,7 +8,7 @@ description: Checking if creating "new (Function("this.p1=1").apply)" fails ---*/ try { - var obj = new(Function("this.p1=1").apply); + var obj = new (Function("this.p1=1").apply); $ERROR('#1: Function.prototype.apply can\'t be used as [[Construct]] caller'); } catch (e) { if (!(e instanceof TypeError)) { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T6.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T6.js index 94169ef9d..ea44af1c2 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T6.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T6.js @@ -11,12 +11,12 @@ description: > //CHECK#1 try { - var obj = new(Function("function f(){this.p1=1;};return f").apply()); + var obj = new (Function("function f(){this.p1=1;};return f").apply()); } catch (e) { $ERROR('#1: Function.prototype.apply can\'t be used as [[Construct]] caller'); } //CHECK#2 -if (obj.p1 !== 1) { +if (obj.p1!== 1) { $ERROR('#2: Function.prototype.apply can\'t be used as [[Construct]] caller'); } diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-0-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-0-1.js index 6a5c1ec34..721390cf7 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-0-1.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-0-1.js @@ -6,6 +6,6 @@ es5id: 15.3.4.5-0-1 description: Function.prototype.bind must exist as a function ---*/ -var f = Function.prototype.bind; + var f = Function.prototype.bind; assert.sameValue(typeof(f), "function", 'typeof(f)'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-10-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-10-1.js index 757d27d50..7486fce8d 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-10-1.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-10-1.js @@ -8,8 +8,8 @@ description: > set as Function ---*/ -var foo = function() {}; + var foo = function () { }; -var obj = foo.bind({}); + var obj = foo.bind({}); assert.sameValue(Object.prototype.toString.call(obj), "[object Function]", 'Object.prototype.toString.call(obj)'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-11-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-11-1.js index cc302b88d..924da6e02 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-11-1.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-11-1.js @@ -8,9 +8,9 @@ description: > is set as Function.prototype ---*/ -var foo = function() {}; + var foo = function () { }; -Function.prototype.property = 12; -var obj = foo.bind({}); + Function.prototype.property = 12; + var obj = foo.bind({}); assert.sameValue(obj.property, 12, 'obj.property'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-1.js index c1dfb471a..76a189908 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-1.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-1.js @@ -6,9 +6,9 @@ es5id: 15.3.4.5-13.b-1 description: Function.prototype.bind, bound fn has a 'length' own property ---*/ -function foo() {} -var o = {}; - -var bf = foo.bind(o); + function foo() { } + var o = {}; + + var bf = foo.bind(o); assert(bf.hasOwnProperty('length'), 'bf.hasOwnProperty("length") !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-2.js index a99ce8cd2..d0aedf906 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-2.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-2.js @@ -8,9 +8,9 @@ description: > expected args ---*/ -function foo(x, y) {} -var o = {}; - -var bf = foo.bind(o); + function foo(x, y) { } + var o = {}; + + var bf = foo.bind(o); assert.sameValue(bf.length, 2, 'bf.length'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-3.js b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-3.js index c712aad44..b2a968ed3 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-3.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-3.js @@ -8,9 +8,9 @@ description: > expected args (all args prefilled) ---*/ -function foo(x, y) {} -var o = {}; - -var bf = foo.bind(o, 42, 101); + function foo(x, y) { } + var o = {}; + + var bf = foo.bind(o, 42, 101); assert.sameValue(bf.length, 0, 'bf.length'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-4.js b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-4.js index 8fe162a20..152d1eb8b 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-4.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-4.js @@ -8,9 +8,9 @@ description: > expected args (target takes 0 args) ---*/ -function foo() {} -var o = {}; - -var bf = foo.bind(o); + function foo() { } + var o = {}; + + var bf = foo.bind(o); assert.sameValue(bf.length, 0, 'bf.length'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-5.js b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-5.js index c95236da2..fcf6139fa 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-5.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-5.js @@ -8,9 +8,9 @@ description: > expected args (target provided extra args) ---*/ -function foo() {} -var o = {}; - -var bf = foo.bind(o, 42); + function foo() { } + var o = {}; + + var bf = foo.bind(o, 42); assert.sameValue(bf.length, 0, 'bf.length'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-6.js b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-6.js index 8b50e1347..038084b1a 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-6.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-6.js @@ -8,9 +8,9 @@ description: > expected args ---*/ -function foo(x, y) {} -var o = {}; + function foo(x, y) { } + var o = {}; -var bf = foo.bind(o, 42); + var bf = foo.bind(o, 42); assert.sameValue(bf.length, 1, 'bf.length'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-15-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-15-1.js index e2ca7cfe8..ff341342e 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-15-1.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-15-1.js @@ -6,11 +6,11 @@ es5id: 15.3.4.5-15-1 description: Function.prototype.bind, 'length' is a data valued own property ---*/ -function foo() {} -var o = {}; - -var bf = foo.bind(o); -var desc = Object.getOwnPropertyDescriptor(bf, 'length'); + function foo() { } + var o = {}; + + var bf = foo.bind(o); + var desc = Object.getOwnPropertyDescriptor(bf, 'length'); assert.sameValue(desc.hasOwnProperty('value'), true, 'desc.hasOwnProperty("value")'); assert.sameValue(desc.hasOwnProperty('get'), false, 'desc.hasOwnProperty("get")'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-15-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-15-2.js index 11cad43ed..19ed95b0d 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-15-2.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-15-2.js @@ -7,11 +7,11 @@ description: > Function.prototype.bind, 'length' is a data valued own property ---*/ -function foo() {} -var o = {}; - -var bf = foo.bind(o); -var desc = Object.getOwnPropertyDescriptor(bf, 'length'); + function foo() { } + var o = {}; + + var bf = foo.bind(o); + var desc = Object.getOwnPropertyDescriptor(bf, 'length'); assert.sameValue(desc.value, 0, 'desc.value'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-15-3.js b/test/built-ins/Function/prototype/bind/15.3.4.5-15-3.js index 8c5f06f4c..f0305bbe4 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-15-3.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-15-3.js @@ -9,7 +9,7 @@ description: > includes: [propertyHelper.js] ---*/ -function foo() {} +function foo() { } var obj = foo.bind({}); var flength = obj.length; diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-15-4.js b/test/built-ins/Function/prototype/bind/15.3.4.5-15-4.js index 1ac7dc4c6..f0f5a41e6 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-15-4.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-15-4.js @@ -8,17 +8,16 @@ description: > property in F set as false ---*/ -var canEnumerable = false; -var hasProperty = false; - -function foo() {} -var obj = foo.bind({}); -hasProperty = obj.hasOwnProperty("length"); -for (var prop in obj) { - if (prop === "length") { - canEnumerable = true; - } -} + var canEnumerable = false; + var hasProperty = false; + function foo() { } + var obj = foo.bind({}); + hasProperty = obj.hasOwnProperty("length"); + for (var prop in obj) { + if (prop === "length") { + canEnumerable = true; + } + } assert(hasProperty, 'hasProperty !== true'); assert.sameValue(canEnumerable, false, 'canEnumerable'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-15-5.js b/test/built-ins/Function/prototype/bind/15.3.4.5-15-5.js index 447d9d617..9a0e9fe66 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-15-5.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-15-5.js @@ -8,14 +8,13 @@ description: > property in F set as true ---*/ -var canConfigurable = false; -var hasProperty = false; - -function foo() {} -var obj = foo.bind({}); -hasProperty = obj.hasOwnProperty("length"); -delete obj.length; -canConfigurable = !obj.hasOwnProperty("length"); + var canConfigurable = false; + var hasProperty = false; + function foo() { } + var obj = foo.bind({}); + hasProperty = obj.hasOwnProperty("length"); + delete obj.length; + canConfigurable = !obj.hasOwnProperty("length"); assert(hasProperty, 'hasProperty !== true'); assert(canConfigurable, 'canConfigurable !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-16-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-16-1.js index ddec313c6..385cc179a 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-16-1.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-16-1.js @@ -6,10 +6,10 @@ es5id: 15.3.4.5-16-1 description: Function.prototype.bind, [[Extensible]] of the bound fn is true ---*/ -function foo() {} -var o = {}; - -var bf = foo.bind(o); -var ex = Object.isExtensible(bf); + function foo() { } + var o = {}; + + var bf = foo.bind(o); + var ex = Object.isExtensible(bf); assert.sameValue(ex, true, 'ex'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-16-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-16-2.js index 2bb3449a6..0a1d79541 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-16-2.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-16-2.js @@ -8,8 +8,8 @@ description: > property in F set as true ---*/ -function foo() {} -var obj = foo.bind({}); -obj.property = 12; + function foo() { } + var obj = foo.bind({}); + obj.property = 12; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-1.js index 4fe22c9ad..22274ec43 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-1.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-1.js @@ -11,10 +11,10 @@ description: > callable (but an instance of Function) ---*/ -foo.prototype = Function.prototype; -// dummy function -function foo() {} -var f = new foo(); + foo.prototype = Function.prototype; + // dummy function + function foo() {} + var f = new foo(); assert.throws(TypeError, function() { - f.bind(); + f.bind(); }); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-10.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-10.js index d351a8085..b7cc355aa 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-10.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-10.js @@ -8,5 +8,5 @@ description: Function.prototype.bind throws TypeError if 'Target' is undefined assert.throws(TypeError, function() { - Function.prototype.bind.call(undefined); + Function.prototype.bind.call(undefined); }); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-11.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-11.js index cb8b5bb00..a6b2d2536 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-11.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-11.js @@ -8,5 +8,5 @@ description: Function.prototype.bind throws TypeError if 'Target' is NULL assert.throws(TypeError, function() { - Function.prototype.bind.call(null); + Function.prototype.bind.call(null); }); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-12.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-12.js index bb5299cb6..ac81d90cb 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-12.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-12.js @@ -8,5 +8,5 @@ description: Function.prototype.bind throws TypeError if 'Target' is a boolean assert.throws(TypeError, function() { - Function.prototype.bind.call(true); + Function.prototype.bind.call(true); }); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-13.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-13.js index 8e99cd6f6..0745139ad 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-13.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-13.js @@ -8,5 +8,5 @@ description: Function.prototype.bind throws TypeError if 'Target' is a number assert.throws(TypeError, function() { - Function.prototype.bind.call(5); + Function.prototype.bind.call(5); }); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-14.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-14.js index 48710b1df..64b0899f7 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-14.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-14.js @@ -8,5 +8,5 @@ description: Function.prototype.bind throws TypeError if 'Target' is a string assert.throws(TypeError, function() { - Function.prototype.bind.call("abc"); + Function.prototype.bind.call("abc"); }); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-15.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-15.js index 83c763a95..887441b2c 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-15.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-15.js @@ -10,5 +10,5 @@ description: > assert.throws(TypeError, function() { - Function.prototype.bind.call({}); + Function.prototype.bind.call({}); }); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-16.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-16.js index 55832a1c1..4d72a31fe 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-16.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-16.js @@ -6,6 +6,6 @@ es5id: 15.3.4.5-2-16 description: Function.prototype.bind - 'Target' is a function ---*/ -function testFunc() {} + function testFunc() {} -testFunc.bind(); + testFunc.bind(); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-2.js index 83f9770a8..17fc39e38 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-2.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-2.js @@ -11,10 +11,10 @@ description: > callable (bind attached to object) ---*/ -// dummy function -function foo() {} -var f = new foo(); -f.bind = Function.prototype.bind; + // dummy function + function foo() {} + var f = new foo(); + f.bind = Function.prototype.bind; assert.throws(TypeError, function() { - f.bind(); + f.bind(); }); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-3.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-3.js index 38baf8fa0..72842e357 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-3.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-3.js @@ -9,7 +9,7 @@ es5id: 15.3.4.5-2-3 description: Function.prototype.bind allows Target to be a constructor (Number) ---*/ -var bnc = Number.bind(null); -var n = bnc(42); + var bnc = Number.bind(null); + var n = bnc(42); assert.sameValue(n, 42, 'n'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-4.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-4.js index c4c97b310..b33445051 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-4.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-4.js @@ -9,7 +9,7 @@ es5id: 15.3.4.5-2-4 description: Function.prototype.bind allows Target to be a constructor (String) ---*/ -var bsc = String.bind(null); -var s = bsc("hello world"); + var bsc = String.bind(null); + var s = bsc("hello world"); assert.sameValue(s, "hello world", 's'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-5.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-5.js index 893d19b53..935f654cb 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-5.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-5.js @@ -9,7 +9,7 @@ es5id: 15.3.4.5-2-5 description: Function.prototype.bind allows Target to be a constructor (Boolean) ---*/ -var bbc = Boolean.bind(null); -var b = bbc(true); + var bbc = Boolean.bind(null); + var b = bbc(true); assert.sameValue(b, true, 'b'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-6.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-6.js index d659c61b0..e9924b7d2 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-6.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-6.js @@ -9,7 +9,7 @@ es5id: 15.3.4.5-2-6 description: Function.prototype.bind allows Target to be a constructor (Object) ---*/ -var boc = Object.bind(null); -var o = boc(42); + var boc = Object.bind(null); + var o = boc(42); assert((o == 42), '(o == 42) !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-7.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-7.js index 124f1f87e..8df945394 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-7.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-7.js @@ -13,5 +13,5 @@ description: > assert.throws(TypeError, function() { - JSON.bind(); + JSON.bind(); }); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-8.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-8.js index 99474ac4d..79efe3ccf 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-8.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-8.js @@ -9,10 +9,10 @@ es5id: 15.3.4.5-2-8 description: Function.prototype.bind allows Target to be a constructor (Array) ---*/ -var bac = Array.bind(null); -var a = bac(42); -a.prop = "verifyPropertyExist"; -a[41] = 41; + var bac = Array.bind(null); + var a = bac(42); + a.prop = "verifyPropertyExist"; + a[41] = 41; assert.sameValue(a.prop, "verifyPropertyExist", 'a.prop'); assert.sameValue(a[41], 41, 'a[41]'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-9.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-9.js index f16e2404f..337e8b6da 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-9.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-9.js @@ -6,7 +6,7 @@ es5id: 15.3.4.5-2-9 description: Function.prototype.bind allows Target to be a constructor (Date) ---*/ -var bdc = Date.bind(null); -var s = bdc(0, 0, 0); + var bdc = Date.bind(null); + var s = bdc(0, 0, 0); assert.sameValue(typeof(s), 'string', 'typeof(s)'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-20-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-20-2.js index ce141fdab..c07b78a05 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-20-2.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-20-2.js @@ -8,9 +8,9 @@ description: > in 'F' is thrower ---*/ -function foo() {} -var obj = foo.bind({}); + function foo() { } + var obj = foo.bind({}); assert.throws(TypeError, function() { - obj.caller; + obj.caller; }); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-20-3.js b/test/built-ins/Function/prototype/bind/15.3.4.5-20-3.js index b3f830dbb..15516ceb6 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-20-3.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-20-3.js @@ -8,8 +8,8 @@ description: > in 'F' is thrower ---*/ -function foo() {} -var obj = foo.bind({}); + function foo() { } + var obj = foo.bind({}); assert.throws(TypeError, function() { - obj.caller = 12; + obj.caller = 12; }); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-21-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-21-2.js index 2d7c5dfca..8779bc06d 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-21-2.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-21-2.js @@ -8,9 +8,9 @@ description: > property in 'F' is thrower ---*/ -function foo() {} -var obj = foo.bind({}); + function foo() { } + var obj = foo.bind({}); assert.throws(TypeError, function() { - obj.arguments; + obj.arguments; }); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-21-3.js b/test/built-ins/Function/prototype/bind/15.3.4.5-21-3.js index 34bf7d6f2..c132f9d09 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-21-3.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-21-3.js @@ -8,8 +8,8 @@ description: > property in 'F' is thrower ---*/ -function foo() {} -var obj = foo.bind({}); + function foo() { } + var obj = foo.bind({}); assert.throws(TypeError, function() { - obj.arguments = 12; + obj.arguments = 12; }); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-3-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-3-1.js index f6aab4e45..0a88f6d3b 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-3-1.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-3-1.js @@ -6,11 +6,11 @@ es5id: 15.3.4.5-3-1 description: Function.prototype.bind - each arg is defined in A in list order ---*/ -var foo = function(x, y) { - return new Boolean((x + y) === "ab" && arguments[0] === "a" && - arguments[1] === "b" && arguments.length === 2); -}; + var foo = function (x, y) { + return new Boolean((x + y) === "ab" && arguments[0] === "a" && + arguments[1] === "b" && arguments.length === 2); + }; -var obj = foo.bind({}, "a", "b"); + var obj = foo.bind({}, "a", "b"); assert((obj() == true), '(obj() == true) !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-1.js index 5a2427399..89e32473e 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-1.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-1.js @@ -6,9 +6,9 @@ es5id: 15.3.4.5-6-1 description: Function.prototype.bind - F can get own data property ---*/ -var foo = function() {}; + var foo = function () { }; -var obj = foo.bind({}); -obj.property = 12; + var obj = foo.bind({}); + obj.property = 12; assert.sameValue(obj.property, 12, 'obj.property'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-10.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-10.js index 7d46c866e..d4d1b0996 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-10.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-10.js @@ -8,19 +8,19 @@ description: > a get function that overrides an inherited accessor property ---*/ -var foo = function() {}; + var foo = function () { }; -var obj = foo.bind({}); + var obj = foo.bind({}); -Object.defineProperty(Function.prototype, "property", { - get: function() { - return 3; - }, - configurable: true -}); + Object.defineProperty(Function.prototype, "property", { + get: function () { + return 3; + }, + configurable: true + }); -Object.defineProperty(obj, "property", { - set: function() {} -}); + Object.defineProperty(obj, "property", { + set: function () { } + }); -assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)'); +assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-11.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-11.js index 3febd3790..2f3939817 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-11.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-11.js @@ -8,13 +8,13 @@ description: > without a get function ---*/ -var foo = function() {}; + var foo = function () { }; -var obj = foo.bind({}); + var obj = foo.bind({}); -Object.defineProperty(Function.prototype, "property", { - set: function() {}, - configurable: true -}); + Object.defineProperty(Function.prototype, "property", { + set: function () { }, + configurable: true + }); -assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)'); +assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-12.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-12.js index 8ac9fab50..416294bc0 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-12.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-12.js @@ -6,8 +6,8 @@ es5id: 15.3.4.5-6-12 description: Function.prototype.bind - F cannot get property which doesn't exist ---*/ -var foo = function() {}; + var foo = function () { }; -var obj = foo.bind({}); + var obj = foo.bind({}); -assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)'); +assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-2.js index b770d4876..e6718ada4 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-2.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-2.js @@ -6,10 +6,10 @@ es5id: 15.3.4.5-6-2 description: Function.prototype.bind - F can get inherited data property ---*/ -var foo = function() {}; + var foo = function () { }; -var obj = foo.bind({}); + var obj = foo.bind({}); -Function.prototype.property = 12; + Function.prototype.property = 12; assert.sameValue(obj.property, 12, 'obj.property'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-3.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-3.js index ea79e26d2..a3cc6aaac 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-3.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-3.js @@ -8,11 +8,11 @@ description: > overrides an inherited data property ---*/ -var foo = function() {}; + var foo = function () { }; -var obj = foo.bind({}); + var obj = foo.bind({}); -Function.prototype.property = 3; -obj.property = 12; + Function.prototype.property = 3; + obj.property = 12; assert.sameValue(obj.property, 12, 'obj.property'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-4.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-4.js index f1c1bdb02..914e18209 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-4.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-4.js @@ -8,19 +8,19 @@ description: > overrides an inherited accessor property ---*/ -var foo = function() {}; + var foo = function () { }; -var obj = foo.bind({}); + var obj = foo.bind({}); -Object.defineProperty(Function.prototype, "property", { - get: function() { - return 3; - }, - configurable: true -}); - -Object.defineProperty(obj, "property", { - value: 12 -}); + Object.defineProperty(Function.prototype, "property", { + get: function () { + return 3; + }, + configurable: true + }); + + Object.defineProperty(obj, "property", { + value: 12 + }); assert.sameValue(obj.property, 12, 'obj.property'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-5.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-5.js index 4f12d470a..e75c71ee1 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-5.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-5.js @@ -6,13 +6,13 @@ es5id: 15.3.4.5-6-5 description: Function.prototype.bind - F can get own accessor property ---*/ -var foo = function() {}; + var foo = function () { }; -var obj = foo.bind({}); -Object.defineProperty(obj, "property", { - get: function() { - return 12; - } -}); + var obj = foo.bind({}); + Object.defineProperty(obj, "property", { + get: function () { + return 12; + } + }); assert.sameValue(obj.property, 12, 'obj.property'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-6.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-6.js index d32741530..4abb56c50 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-6.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-6.js @@ -6,15 +6,15 @@ es5id: 15.3.4.5-6-6 description: Function.prototype.bind - F can get inherited accessor property ---*/ -var foo = function() {}; + var foo = function () { }; -var obj = foo.bind({}); + var obj = foo.bind({}); -Object.defineProperty(Function.prototype, "property", { - get: function() { - return 12; - }, - configurable: true -}); + Object.defineProperty(Function.prototype, "property", { + get: function () { + return 12; + }, + configurable: true + }); assert.sameValue(obj.property, 12, 'obj.property'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-7.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-7.js index a5037a2f4..7dc8018d1 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-7.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-7.js @@ -8,15 +8,15 @@ description: > overrides an inherited data property ---*/ -var foo = function() {}; + var foo = function () { }; -var obj = foo.bind({}); + var obj = foo.bind({}); -Function.prototype.property = 3; -Object.defineProperty(obj, "property", { - get: function() { - return 12; - } -}); + Function.prototype.property = 3; + Object.defineProperty(obj, "property", { + get: function () { + return 12; + } + }); assert.sameValue(obj.property, 12, 'obj.property'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-8.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-8.js index 8ccd3143f..65bf83aad 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-8.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-8.js @@ -8,21 +8,21 @@ description: > overrides an inherited accessor property ---*/ -var foo = function() {}; + var foo = function () { }; -var obj = foo.bind({}); + var obj = foo.bind({}); -Object.defineProperty(Function.prototype, "property", { - get: function() { - return 3; - }, - configurable: true -}); + Object.defineProperty(Function.prototype, "property", { + get: function () { + return 3; + }, + configurable: true + }); -Object.defineProperty(obj, "property", { - get: function() { - return 12; - } -}); + Object.defineProperty(obj, "property", { + get: function () { + return 12; + } + }); assert.sameValue(obj.property, 12, 'obj.property'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-9.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-9.js index 6f2465005..bedb8acfb 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-9.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-9.js @@ -8,12 +8,12 @@ description: > a get function ---*/ -var foo = function() {}; + var foo = function () { }; -var obj = foo.bind({}); -Object.defineProperty(obj, "property", { - set: function() {} -}); + var obj = foo.bind({}); + Object.defineProperty(obj, "property", { + set: function () {} + }); assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); -assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)'); +assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-8-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-8-1.js index 71eda47c4..3ef542bdc 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-8-1.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-8-1.js @@ -6,9 +6,9 @@ es5id: 15.3.4.5-8-1 description: Function.prototype.bind, type of bound function must be 'function' ---*/ -function foo() {} -var o = {}; - -var bf = foo.bind(o); + function foo() { } + var o = {}; + + var bf = foo.bind(o); assert.sameValue(typeof(bf), 'function', 'typeof(bf)'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-8-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-8-2.js index 7edffd174..cc9ca589b 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-8-2.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-8-2.js @@ -8,10 +8,10 @@ description: > 'Function' ---*/ -function foo() {} -var o = {}; - -var bf = foo.bind(o); -var s = Object.prototype.toString.call(bf); + function foo() { } + var o = {}; + + var bf = foo.bind(o); + var s = Object.prototype.toString.call(bf); assert.sameValue(s, '[object Function]', 's'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-9-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-9-1.js index b2e9a05b6..ff231a57b 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-9-1.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-9-1.js @@ -6,9 +6,9 @@ es5id: 15.3.4.5-9-1 description: Function.prototype.bind, [[Prototype]] is Function.prototype ---*/ -function foo() {} -var o = {}; - -var bf = foo.bind(o); + function foo() { } + var o = {}; + + var bf = foo.bind(o); assert(Function.prototype.isPrototypeOf(bf), 'Function.prototype.isPrototypeOf(bf) !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-9-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-9-2.js index e8f93ad8d..597e3ca15 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-9-2.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-9-2.js @@ -8,9 +8,9 @@ description: > (using getPrototypeOf) ---*/ -function foo() {} -var o = {}; - -var bf = foo.bind(o); + function foo() { } + var o = {}; + + var bf = foo.bind(o); assert.sameValue(Object.getPrototypeOf(bf), Function.prototype, 'Object.getPrototypeOf(bf)'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-1.js index d29e6ada9..9d386aa4f 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-1.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-1.js @@ -9,10 +9,10 @@ description: > [[TargetFunction]] when 'F' is called ---*/ -var func = function(x, y, z) { - return x + y + z; -}; + var func = function (x, y, z) { + return x + y + z; + }; -var newFunc = Function.prototype.bind.call(func, {}, "a", "b", "c"); + var newFunc = Function.prototype.bind.call(func, {}, "a", "b", "c"); assert.sameValue(newFunc(), "abc", 'newFunc()'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-10.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-10.js index 48116b915..13c4a05bc 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-10.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-10.js @@ -8,14 +8,12 @@ description: > 'boundArgs' is 0, length of 'ExtraArgs' is 0, and with 'boundThis' ---*/ -var obj = { - prop: "abc" -}; + var obj = { prop: "abc" }; -var func = function(x) { - return this === obj && typeof x === "undefined"; -}; + var func = function (x) { + return this === obj && typeof x === "undefined"; + }; -var newFunc = Function.prototype.bind.call(func, obj); + var newFunc = Function.prototype.bind.call(func, obj); assert(newFunc(), 'newFunc() !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-11.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-11.js index 5f9e6167e..162dfdbc2 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-11.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-11.js @@ -8,14 +8,12 @@ description: > 'boundArgs' is 0, length of 'ExtraArgs' is 1, and with 'boundThis' ---*/ -var obj = { - prop: "abc" -}; + var obj = { prop: "abc" }; -var func = function(x) { - return this === obj && x === 1 && arguments[0] === 1 && arguments.length === 1 && this.prop === "abc"; -}; + var func = function (x) { + return this === obj && x === 1 && arguments[0] === 1 && arguments.length === 1 && this.prop === "abc"; + }; -var newFunc = Function.prototype.bind.call(func, obj); + var newFunc = Function.prototype.bind.call(func, obj); assert(newFunc(1), 'newFunc(1) !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-12.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-12.js index c2ac2a3dd..0185bd3e2 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-12.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-12.js @@ -8,15 +8,13 @@ description: > 'boundArgs' is 0, length of 'ExtraArgs' is 2, and with 'boundThis' ---*/ -var obj = { - prop: "abc" -}; + var obj = { prop: "abc" }; -var func = function(x) { - return this === obj && x === 1 && arguments[1] === 2 && - arguments[0] === 1 && arguments.length === 2 && this.prop === "abc"; -}; + var func = function (x) { + return this === obj && x === 1 && arguments[1] === 2 && + arguments[0] === 1 && arguments.length === 2 && this.prop === "abc"; + }; -var newFunc = Function.prototype.bind.call(func, obj); + var newFunc = Function.prototype.bind.call(func, obj); assert(newFunc(1, 2), 'newFunc(1, 2) !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-13.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-13.js index 5bf792565..477b95d8e 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-13.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-13.js @@ -8,15 +8,13 @@ description: > 'boundArgs' is 1, length of 'ExtraArgs' is 0, and with 'boundThis' ---*/ -var obj = { - prop: "abc" -}; + var obj = { prop: "abc" }; -var func = function(x) { - return this === obj && x === 1 && - arguments[0] === 1 && arguments.length === 1 && this.prop === "abc"; -}; + var func = function (x) { + return this === obj && x === 1 && + arguments[0] === 1 && arguments.length === 1 && this.prop === "abc"; + }; -var newFunc = Function.prototype.bind.call(func, obj, 1); + var newFunc = Function.prototype.bind.call(func, obj, 1); assert(newFunc(), 'newFunc() !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-14.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-14.js index 8090b28f3..3c844f557 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-14.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-14.js @@ -8,15 +8,13 @@ description: > 'boundArgs' is 1, length of 'ExtraArgs' is 1, and with 'boundThis' ---*/ -var obj = { - prop: "abc" -}; + var obj = { prop: "abc" }; -var func = function(x) { - return this === obj && x === 1 && arguments[1] === 2 && - arguments[0] === 1 && arguments.length === 2 && this.prop === "abc"; -}; + var func = function (x) { + return this === obj && x === 1 && arguments[1] === 2 && + arguments[0] === 1 && arguments.length === 2 && this.prop === "abc"; + }; -var newFunc = Function.prototype.bind.call(func, obj, 1); + var newFunc = Function.prototype.bind.call(func, obj, 1); assert(newFunc(2), 'newFunc(2) !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-15.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-15.js index d10b5a53b..772059d8f 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-15.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-15.js @@ -8,15 +8,13 @@ description: > 'boundArgs' is 2, length of 'ExtraArgs' is 0, and with 'boundThis' ---*/ -var obj = { - prop: "abc" -}; + var obj = { prop: "abc" }; -var func = function(x) { - return this === obj && x === 1 && arguments[1] === 2 && - arguments[0] === 1 && arguments.length === 2 && this.prop === "abc"; -}; + var func = function (x) { + return this === obj && x === 1 && arguments[1] === 2 && + arguments[0] === 1 && arguments.length === 2 && this.prop === "abc"; + }; -var newFunc = Function.prototype.bind.call(func, obj, 1, 2); + var newFunc = Function.prototype.bind.call(func, obj, 1, 2); assert(newFunc(), 'newFunc() !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-2.js index 77ad47716..329b1e78c 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-2.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-2.js @@ -9,14 +9,12 @@ description: > when 'F' is called ---*/ -var obj = { - "prop": "a" -}; + var obj = { "prop": "a" }; -var func = function() { - return this; -}; + var func = function () { + return this; + }; -var newFunc = Function.prototype.bind.call(func, obj); + var newFunc = Function.prototype.bind.call(func, obj); assert.sameValue(newFunc(), obj, 'newFunc()'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-3.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-3.js index 138e22f6c..c0bb824d0 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-3.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-3.js @@ -9,10 +9,10 @@ description: > [[TargetFunction]] when 'F' is called ---*/ -var func = function(x, y, z) { - return z; -}; + var func = function (x, y, z) { + return z; + }; -var newFunc = Function.prototype.bind.call(func, {}, "a", "b"); + var newFunc = Function.prototype.bind.call(func, {}, "a", "b"); assert.sameValue(newFunc("c"), "c", 'newFunc("c")'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-4.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-4.js index c7575ddc3..829615fff 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-4.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-4.js @@ -9,10 +9,10 @@ description: > 'boundThis' ---*/ -var func = function() { - return arguments.length === 0; -}; + var func = function () { + return arguments.length === 0; + }; -var newFunc = Function.prototype.bind.call(func); + var newFunc = Function.prototype.bind.call(func); assert(newFunc(), 'newFunc() !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-5.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-5.js index 40f2188b4..7342bbdd3 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-5.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-5.js @@ -9,10 +9,10 @@ description: > 'boundThis' ---*/ -var func = function() { - return arguments[0] === 1; -}; + var func = function () { + return arguments[0] === 1; + }; -var newFunc = Function.prototype.bind.call(func); + var newFunc = Function.prototype.bind.call(func); assert(newFunc(1), 'newFunc(1) !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-6.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-6.js index 4188a07b6..88da5973c 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-6.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-6.js @@ -8,14 +8,12 @@ description: > 'boundArgs' is 0, length of 'ExtraArgs' is 0, and with 'boundThis' ---*/ -var obj = { - prop: "abc" -}; + var obj = { prop: "abc" }; -var func = function() { - return this === obj && arguments.length === 0; -}; + var func = function () { + return this === obj && arguments.length === 0; + }; -var newFunc = Function.prototype.bind.call(func, obj); + var newFunc = Function.prototype.bind.call(func, obj); assert(newFunc(), 'newFunc() !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-7.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-7.js index a541eaaad..2e90afd02 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-7.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-7.js @@ -8,14 +8,12 @@ description: > 'boundArgs' is 1, length of 'ExtraArgs' is 0, and with 'boundThis' ---*/ -var obj = { - prop: "abc" -}; + var obj = { prop: "abc" }; -var func = function() { - return this === obj && arguments[0] === 1; -}; + var func = function () { + return this === obj && arguments[0] === 1; + }; -var newFunc = Function.prototype.bind.call(func, obj, 1); + var newFunc = Function.prototype.bind.call(func, obj, 1); assert(newFunc(), 'newFunc() !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-8.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-8.js index 405ece18f..7203696e8 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-8.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-8.js @@ -8,14 +8,12 @@ description: > 'boundArgs' is 0, length of 'ExtraArgs' is 1, and with 'boundThis' ---*/ -var obj = { - prop: "abc" -}; + var obj = { prop: "abc" }; -var func = function() { - return this === obj && arguments[0] === 1; -}; + var func = function () { + return this === obj && arguments[0] === 1; + }; -var newFunc = Function.prototype.bind.call(func, obj); + var newFunc = Function.prototype.bind.call(func, obj); assert(newFunc(1), 'newFunc(1) !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-9.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-9.js index d3c13c4e4..496a18584 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-9.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-9.js @@ -8,14 +8,12 @@ description: > 'boundArgs' is 1, length of 'ExtraArgs' is 1, and with 'boundThis' ---*/ -var obj = { - prop: "abc" -}; + var obj = { prop: "abc" }; -var func = function() { - return this === obj && arguments[0] === 1 && arguments[1] === 2; -}; + var func = function () { + return this === obj && arguments[0] === 1 && arguments[1] === 2; + }; -var newFunc = Function.prototype.bind.call(func, obj, 1); + var newFunc = Function.prototype.bind.call(func, obj, 1); assert(newFunc(2), 'newFunc(2) !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-1.js index b71c21678..5088d7335 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-1.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-1.js @@ -9,16 +9,16 @@ description: > [[TargetFunction]] when 'F' is called as constructor ---*/ -var func = function(x, y, z) { - var objResult = {}; - objResult.returnValue = x + y + z; - objResult.returnVerifyResult = arguments[0] === "a" && arguments.length === 3; - return objResult; -}; + var func = function (x, y, z) { + var objResult = {}; + objResult.returnValue = x + y + z; + objResult.returnVerifyResult = arguments[0] === "a" && arguments.length === 3; + return objResult; + }; -var NewFunc = Function.prototype.bind.call(func, {}, "a", "b", "c"); + var NewFunc = Function.prototype.bind.call(func, {}, "a", "b", "c"); -var newInstance = new NewFunc(); + var newInstance = new NewFunc(); assert(newInstance.hasOwnProperty("returnValue"), 'newInstance.hasOwnProperty("returnValue") !== true'); assert.sameValue(newInstance.returnValue, "abc", 'newInstance.returnValue'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-10.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-10.js index 182b4bcec..c3a9014e1 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-10.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-10.js @@ -8,12 +8,12 @@ description: > 'boundArgs' is 0, length of 'ExtraArgs' is 1 ---*/ -var func = function(x) { - return new Boolean(arguments.length === 1 && x === 1 && arguments[0] === 1); -}; + var func = function (x) { + return new Boolean(arguments.length === 1 && x === 1 && arguments[0] === 1); + }; -var NewFunc = Function.prototype.bind.call(func, {}); + var NewFunc = Function.prototype.bind.call(func, {}); -var newInstance = new NewFunc(1); + var newInstance = new NewFunc(1); assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-11.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-11.js index 7588ba3c6..1d385d081 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-11.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-11.js @@ -8,12 +8,12 @@ description: > 'boundArgs' is 0, length of 'ExtraArgs' is 2 ---*/ -var func = function(x) { - return new Boolean(arguments.length === 2 && x === 1 && arguments[1] === 2 && arguments[0] === 1); -}; + var func = function (x) { + return new Boolean(arguments.length === 2 && x === 1 && arguments[1] === 2 && arguments[0] === 1); + }; -var NewFunc = Function.prototype.bind.call(func, {}); + var NewFunc = Function.prototype.bind.call(func, {}); -var newInstance = new NewFunc(1, 2); + var newInstance = new NewFunc(1, 2); assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-12.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-12.js index cc813fe58..2a3ab1bf2 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-12.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-12.js @@ -8,12 +8,12 @@ description: > 'boundArgs' is 1, length of 'ExtraArgs' is 0 ---*/ -var func = function(x) { - return new Boolean(arguments.length === 1 && x === 1 && arguments[0] === 1); -}; + var func = function (x) { + return new Boolean(arguments.length === 1 && x === 1 && arguments[0] === 1); + }; -var NewFunc = Function.prototype.bind.call(func, {}, 1); + var NewFunc = Function.prototype.bind.call(func, {}, 1); -var newInstance = new NewFunc(); + var newInstance = new NewFunc(); assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-13.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-13.js index d31433b28..ad86f0904 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-13.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-13.js @@ -8,12 +8,12 @@ description: > 'boundArgs' is 1, length of 'ExtraArgs' is 1 ---*/ -var func = function(x) { - return new Boolean(arguments.length === 2 && x === 1 && arguments[1] === 2 && arguments[0] === 1); -}; + var func = function (x) { + return new Boolean(arguments.length === 2 && x === 1 && arguments[1] === 2 && arguments[0] === 1); + }; -var NewFunc = Function.prototype.bind.call(func, {}, 1); + var NewFunc = Function.prototype.bind.call(func, {}, 1); -var newInstance = new NewFunc(2); + var newInstance = new NewFunc(2); assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-14.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-14.js index 2650b236f..e893ad5a8 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-14.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-14.js @@ -8,12 +8,12 @@ description: > 'boundArgs' is 2, length of 'ExtraArgs' is 0 ---*/ -var func = function(x) { - return new Boolean(arguments.length === 2 && x === 1 && arguments[1] === 2 && arguments[0] === 1); -}; + var func = function (x) { + return new Boolean(arguments.length === 2 && x === 1 && arguments[1] === 2 && arguments[0] === 1); + }; -var NewFunc = Function.prototype.bind.call(func, {}, 1, 2); + var NewFunc = Function.prototype.bind.call(func, {}, 1, 2); -var newInstance = new NewFunc(); + var newInstance = new NewFunc(); assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-2.js index 4109332f1..cdee9fae6 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-2.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-2.js @@ -9,16 +9,16 @@ description: > [[TargetFunction]] when 'F' is called as constructor ---*/ -var func = function(x, y, z) { - var objResult = {}; - objResult.returnValue = x + y + z; - objResult.returnVerifyResult = arguments[0] === "a" && arguments.length === 3; - return objResult; -}; + var func = function (x, y, z) { + var objResult = {}; + objResult.returnValue = x + y + z; + objResult.returnVerifyResult = arguments[0] === "a" && arguments.length === 3; + return objResult; + }; -var NewFunc = Function.prototype.bind.call(func, {}); + var NewFunc = Function.prototype.bind.call(func, {}); -var newInstance = new NewFunc("a", "b", "c"); + var newInstance = new NewFunc("a", "b", "c"); assert(newInstance.hasOwnProperty("returnValue"), 'newInstance.hasOwnProperty("returnValue") !== true'); assert.sameValue(newInstance.returnValue, "abc", 'newInstance.returnValue'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-3.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-3.js index 4e191f160..535e38e0e 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-3.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-3.js @@ -9,12 +9,12 @@ description: > 'boundThis' ---*/ -var func = function() { - return new Boolean(arguments.length === 0); -}; + var func = function () { + return new Boolean(arguments.length === 0); + }; -var NewFunc = Function.prototype.bind.call(func); + var NewFunc = Function.prototype.bind.call(func); -var newInstance = new NewFunc(); + var newInstance = new NewFunc(); assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-4.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-4.js index c668db2ac..2fdf32fd3 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-4.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-4.js @@ -9,12 +9,12 @@ description: > 'boundThis' ---*/ -var func = function() { - return new Boolean(arguments[0] === 1 && arguments.length === 1); -}; + var func = function () { + return new Boolean(arguments[0] === 1 && arguments.length === 1); + }; -var NewFunc = Function.prototype.bind.call(func); + var NewFunc = Function.prototype.bind.call(func); -var newInstance = new NewFunc(1); + var newInstance = new NewFunc(1); assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-5.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-5.js index dc04a872e..1bc2037b5 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-5.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-5.js @@ -8,18 +8,16 @@ description: > 'boundArgs' is 0, length of 'ExtraArgs' is 0, and with 'boundThis' ---*/ -var obj = { - prop: "abc" -}; + var obj = { prop: "abc" }; -Object.prototype.verifyThis = "verifyThis"; -var func = function() { - return new Boolean(arguments.length === 0 && Object.prototype.toString.call(this) === "[object Object]" && - this.verifyThis === "verifyThis"); -}; + Object.prototype.verifyThis = "verifyThis"; + var func = function () { + return new Boolean(arguments.length === 0 && Object.prototype.toString.call(this) === "[object Object]" && + this.verifyThis === "verifyThis"); + }; -var NewFunc = Function.prototype.bind.call(func, obj); + var NewFunc = Function.prototype.bind.call(func, obj); -var newInstance = new NewFunc(); + var newInstance = new NewFunc(); assert(newInstance.valueOf(), 'newInstance.valueOf() !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-6.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-6.js index 90fe291b0..1afb3b7cf 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-6.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-6.js @@ -8,12 +8,12 @@ description: > 'boundArgs' is 1, length of 'ExtraArgs' is 0 ---*/ -var func = function() { - return new Boolean(arguments.length === 1 && arguments[0] === 1); -}; + var func = function () { + return new Boolean(arguments.length === 1 && arguments[0] === 1); + }; -var NewFunc = Function.prototype.bind.call(func, {}, 1); + var NewFunc = Function.prototype.bind.call(func, {}, 1); -var newInstance = new NewFunc(); + var newInstance = new NewFunc(); assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-7.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-7.js index 217c01c90..085e9545e 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-7.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-7.js @@ -8,12 +8,12 @@ description: > 'boundArgs' is 0, length of 'ExtraArgs' is 1 ---*/ -var func = function() { - return new Boolean(arguments.length === 1 && arguments[0] === 1); -}; + var func = function () { + return new Boolean(arguments.length === 1 && arguments[0] === 1); + }; -var NewFunc = Function.prototype.bind.call(func, {}); + var NewFunc = Function.prototype.bind.call(func, {}); -var newInstance = new NewFunc(1); + var newInstance = new NewFunc(1); assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-8.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-8.js index 2dc27e06c..4207a187c 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-8.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-8.js @@ -8,12 +8,12 @@ description: > 'boundArgs' is 1, length of 'ExtraArgs' is 1 ---*/ -var func = function() { - return new Boolean(arguments.length === 2 && arguments[0] === 1 && arguments[1] === 2); -}; + var func = function () { + return new Boolean(arguments.length === 2 && arguments[0] === 1 && arguments[1] === 2); + }; -var NewFunc = Function.prototype.bind.call(func, {}, 1); + var NewFunc = Function.prototype.bind.call(func, {}, 1); -var newInstance = new NewFunc(2); + var newInstance = new NewFunc(2); assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-9.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-9.js index ff53ee612..4c25b405d 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-9.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-9.js @@ -8,12 +8,12 @@ description: > 'boundArgs' is 0, length of 'ExtraArgs' is 0 ---*/ -var func = function(x) { - return new Boolean(arguments.length === 0 && typeof x === "undefined"); -}; + var func = function (x) { + return new Boolean(arguments.length === 0 && typeof x === "undefined"); + }; -var NewFunc = Function.prototype.bind.call(func, {}); + var NewFunc = Function.prototype.bind.call(func, {}); -var newInstance = new NewFunc(); + var newInstance = new NewFunc(); assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()'); diff --git a/test/built-ins/Function/prototype/bind/S15.3.4.5_A1.js b/test/built-ins/Function/prototype/bind/S15.3.4.5_A1.js index cae9bb2ae..02d66d06d 100644 --- a/test/built-ins/Function/prototype/bind/S15.3.4.5_A1.js +++ b/test/built-ins/Function/prototype/bind/S15.3.4.5_A1.js @@ -7,14 +7,9 @@ es5id: 15.3.4.5_A1 description: A bound function should fail to find its "caller" ---*/ -function foo() { - return bar.caller; -} +function foo() { return bar.caller; } var bar = foo.bind({}); - -function baz() { - return bar(); -} +function baz() { return bar(); } assert.throws(TypeError, function() { baz(); diff --git a/test/built-ins/Function/prototype/bind/S15.3.4.5_A16.js b/test/built-ins/Function/prototype/bind/S15.3.4.5_A16.js index b53e5d61c..92d5f82d8 100644 --- a/test/built-ins/Function/prototype/bind/S15.3.4.5_A16.js +++ b/test/built-ins/Function/prototype/bind/S15.3.4.5_A16.js @@ -17,7 +17,7 @@ if (typeof re === 'function') { try { Function.prototype.bind.call(re, undefined); $ERROR('#1: If IsCallable(func) is false, ' + - 'then (bind should) throw a TypeError exception'); + 'then (bind should) throw a TypeError exception'); } catch (e) { if (!(e instanceof TypeError)) { $ERROR('#1: TypeError expected. Actual: ' + e); diff --git a/test/built-ins/Function/prototype/bind/S15.3.4.5_A2.js b/test/built-ins/Function/prototype/bind/S15.3.4.5_A2.js index d7dd27869..25ef64935 100644 --- a/test/built-ins/Function/prototype/bind/S15.3.4.5_A2.js +++ b/test/built-ins/Function/prototype/bind/S15.3.4.5_A2.js @@ -7,14 +7,9 @@ es5id: 15.3.4.5_A2 description: a bound function should fail to find the bound function "arguments" ---*/ -function foo() { - return bar.arguments; -} +function foo() { return bar.arguments; } var bar = foo.bind({}); - -function baz() { - return bar(); -} +function baz() { return bar(); } assert.throws(TypeError, function() { baz(); diff --git a/test/built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget-bound.js b/test/built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget-bound.js index 97e37f9e4..465b4664e 100644 --- a/test/built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget-bound.js +++ b/test/built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget-bound.js @@ -16,7 +16,6 @@ features: [Reflect, new.target] ---*/ var newTarget; - function A() { newTarget = new.target; } diff --git a/test/built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget.js b/test/built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget.js index a8b869699..b889634db 100644 --- a/test/built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget.js +++ b/test/built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget.js @@ -15,7 +15,6 @@ features: [Reflect, new.target] ---*/ var newTarget; - function A() { newTarget = new.target; } diff --git a/test/built-ins/Function/prototype/bind/instance-construct-newtarget-self-new.js b/test/built-ins/Function/prototype/bind/instance-construct-newtarget-self-new.js index 5177da492..f183dbf79 100644 --- a/test/built-ins/Function/prototype/bind/instance-construct-newtarget-self-new.js +++ b/test/built-ins/Function/prototype/bind/instance-construct-newtarget-self-new.js @@ -14,7 +14,6 @@ features: [new.target] ---*/ var newTarget; - function A() { newTarget = new.target; } diff --git a/test/built-ins/Function/prototype/bind/instance-construct-newtarget-self-reflect.js b/test/built-ins/Function/prototype/bind/instance-construct-newtarget-self-reflect.js index fa8a94894..8664a6eea 100644 --- a/test/built-ins/Function/prototype/bind/instance-construct-newtarget-self-reflect.js +++ b/test/built-ins/Function/prototype/bind/instance-construct-newtarget-self-reflect.js @@ -15,7 +15,6 @@ features: [Reflect, new.target] ---*/ var newTarget; - function A() { newTarget = new.target; } diff --git a/test/built-ins/Function/prototype/bind/instance-name-chained.js b/test/built-ins/Function/prototype/bind/instance-name-chained.js index 2b8ce18d6..a9ad72bb8 100644 --- a/test/built-ins/Function/prototype/bind/instance-name-chained.js +++ b/test/built-ins/Function/prototype/bind/instance-name-chained.js @@ -13,9 +13,7 @@ info: | includes: [propertyHelper.js] ---*/ -var target = Object.defineProperty(function() {}, 'name', { - value: 'target' -}); +var target = Object.defineProperty(function() {}, 'name', { value: 'target' }); assert.sameValue(target.bind().bind().name, 'bound bound target'); verifyNotEnumerable(target.bind().bind(), 'name'); diff --git a/test/built-ins/Function/prototype/bind/instance-name-non-string.js b/test/built-ins/Function/prototype/bind/instance-name-non-string.js index 63e74038d..4ef412a19 100644 --- a/test/built-ins/Function/prototype/bind/instance-name-non-string.js +++ b/test/built-ins/Function/prototype/bind/instance-name-non-string.js @@ -16,54 +16,42 @@ features: [Symbol] var target; -target = Object.defineProperty(function() {}, 'name', { - value: undefined -}); +target = Object.defineProperty(function() {}, 'name', { value: undefined }); assert.sameValue(target.bind().name, 'bound '); verifyNotEnumerable(target.bind(), 'name'); verifyNotWritable(target.bind(), 'name'); verifyConfigurable(target.bind(), 'name'); -target = Object.defineProperty(function() {}, 'name', { - value: null -}); +target = Object.defineProperty(function() {}, 'name', { value: null }); assert.sameValue(target.bind().name, 'bound '); verifyNotEnumerable(target.bind(), 'name'); verifyNotWritable(target.bind(), 'name'); verifyConfigurable(target.bind(), 'name'); -target = Object.defineProperty(function() {}, 'name', { - value: true -}); +target = Object.defineProperty(function() {}, 'name', { value: true }); assert.sameValue(target.bind().name, 'bound '); verifyNotEnumerable(target.bind(), 'name'); verifyNotWritable(target.bind(), 'name'); verifyConfigurable(target.bind(), 'name'); -target = Object.defineProperty(function() {}, 'name', { - value: Symbol('s') -}); +target = Object.defineProperty(function() {}, 'name', { value: Symbol('s') }); assert.sameValue(target.bind().name, 'bound '); verifyNotEnumerable(target.bind(), 'name'); verifyNotWritable(target.bind(), 'name'); verifyConfigurable(target.bind(), 'name'); -target = Object.defineProperty(function() {}, 'name', { - value: 23 -}); +target = Object.defineProperty(function() {}, 'name', { value: 23 }); assert.sameValue(target.bind().name, 'bound '); verifyNotEnumerable(target.bind(), 'name'); verifyNotWritable(target.bind(), 'name'); verifyConfigurable(target.bind(), 'name'); -target = Object.defineProperty(function() {}, 'name', { - value: {} -}); +target = Object.defineProperty(function() {}, 'name', { value: {} }); assert.sameValue(target.bind().name, 'bound '); verifyNotEnumerable(target.bind(), 'name'); diff --git a/test/built-ins/Function/prototype/bind/instance-name.js b/test/built-ins/Function/prototype/bind/instance-name.js index b69f8c655..1750d98d1 100644 --- a/test/built-ins/Function/prototype/bind/instance-name.js +++ b/test/built-ins/Function/prototype/bind/instance-name.js @@ -12,9 +12,7 @@ info: | includes: [propertyHelper.js] ---*/ -var target = Object.defineProperty(function() {}, 'name', { - value: 'target' -}); +var target = Object.defineProperty(function() {}, 'name', { value: 'target' }); assert.sameValue(target.bind().name, 'bound target'); verifyNotEnumerable(target.bind(), 'name'); diff --git a/test/built-ins/Function/prototype/bind/proto-from-ctor-realm.js b/test/built-ins/Function/prototype/bind/proto-from-ctor-realm.js index 1963de281..76e163d46 100644 --- a/test/built-ins/Function/prototype/bind/proto-from-ctor-realm.js +++ b/test/built-ins/Function/prototype/bind/proto-from-ctor-realm.js @@ -23,7 +23,7 @@ var other = $262.createRealm().global; var C = new other.Function(); C.prototype = null; -var D = function() {}.bind(); +var D = function(){}.bind(); var d = Reflect.construct(D, [], C); diff --git a/test/built-ins/Function/prototype/call/15.3.4.4-1-s.js b/test/built-ins/Function/prototype/call/15.3.4.4-1-s.js index a7e12df0d..a4f618bb1 100644 --- a/test/built-ins/Function/prototype/call/15.3.4.4-1-s.js +++ b/test/built-ins/Function/prototype/call/15.3.4.4-1-s.js @@ -10,8 +10,8 @@ description: > flags: [onlyStrict] ---*/ -function fun() { - return (this instanceof String); -} + function fun() { + return (this instanceof String); + } assert.sameValue(fun.call(""), false, 'fun.call("")'); diff --git a/test/built-ins/Function/prototype/call/15.3.4.4-2-s.js b/test/built-ins/Function/prototype/call/15.3.4.4-2-s.js index 27563643a..687003b5c 100644 --- a/test/built-ins/Function/prototype/call/15.3.4.4-2-s.js +++ b/test/built-ins/Function/prototype/call/15.3.4.4-2-s.js @@ -10,8 +10,8 @@ description: > flags: [onlyStrict] ---*/ -function fun() { - return (this instanceof Number); -} + function fun() { + return (this instanceof Number); + } assert.sameValue(fun.call(-12), false, 'fun.call(-12)'); diff --git a/test/built-ins/Function/prototype/call/15.3.4.4-3-s.js b/test/built-ins/Function/prototype/call/15.3.4.4-3-s.js index cc7fb1998..a92bdea11 100644 --- a/test/built-ins/Function/prototype/call/15.3.4.4-3-s.js +++ b/test/built-ins/Function/prototype/call/15.3.4.4-3-s.js @@ -10,8 +10,8 @@ description: > flags: [onlyStrict] ---*/ -function fun() { - return (this instanceof Boolean); -} + function fun() { + return (this instanceof Boolean); + } assert.sameValue(fun.call(false), false, 'fun.call(false)'); diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A10.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A10.js index bf2aa724c..dd8819d49 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A10.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A10.js @@ -17,9 +17,7 @@ if (!(Function.prototype.call.hasOwnProperty('length'))) { var obj = Function.prototype.call.length; -verifyNotWritable(Function.prototype.call, "length", null, function() { - return "shifted"; -}); +verifyNotWritable(Function.prototype.call, "length", null, function(){return "shifted";}); //CHECK#2 if (Function.prototype.call.length !== obj) { diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A11.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A11.js index 830678ae9..c9be0531d 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A11.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A11.js @@ -21,7 +21,7 @@ if (Function.prototype.call.propertyIsEnumerable('length')) { } // CHECK#2 -for (var p in Function.prototype.call) { - if (p === "length") +for (var p in Function.prototype.call){ + if (p==="length") $ERROR('#2: the Function.prototype.call.length property has the attributes DontEnum'); } diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A12.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A12.js index dde3a6c71..a75e65fcb 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A12.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A12.js @@ -11,5 +11,5 @@ description: > //CHECK#1 if (Function.prototype.call.prototype !== undefined) { - $ERROR('#1: Function.prototype.call has not prototype property' + Function.prototype.call.prototype); + $ERROR('#1: Function.prototype.call has not prototype property'+Function.prototype.call.prototype); } diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A16.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A16.js index 383666a13..2bde783dd 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A16.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A16.js @@ -17,7 +17,7 @@ if (typeof re === 'function') { try { Function.prototype.bind.call(re, undefined); $ERROR('#1: If IsCallable(func) is false, ' + - 'then (bind should) throw a TypeError exception'); + 'then (bind should) throw a TypeError exception'); } catch (e) { if (!(e instanceof TypeError)) { $ERROR('#1: TypeError expected. Actual: ' + e); diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A1_T1.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A1_T1.js index 7d3f3dddb..993391795 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A1_T1.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A1_T1.js @@ -12,11 +12,11 @@ description: > property. Prototype of the object is Function() ---*/ -var proto = Function(); +var proto=Function(); -function FACTORY() {}; +function FACTORY(){}; -FACTORY.prototype = proto; +FACTORY.prototype=proto; var obj = new FACTORY; @@ -31,6 +31,6 @@ try { $ERROR('#2: If the object does not have a [[Call]] property, a TypeError exception is thrown'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#2.1: If the object does not have a [[Call]] property, a TypeError exception is thrown'); + $ERROR('#2.1: If the object does not have a [[Call]] property, a TypeError exception is thrown'); } } diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A1_T2.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A1_T2.js index de04b43dd..a07cbd0ef 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A1_T2.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A1_T2.js @@ -12,9 +12,9 @@ description: > property. Prototype of the object is Function.prototype ---*/ -function FACTORY() {}; +function FACTORY(){}; -FACTORY.prototype = Function.prototype; +FACTORY.prototype=Function.prototype; var obj = new FACTORY; @@ -29,6 +29,6 @@ try { $ERROR('#2: If the object does not have a [[Call]] property, a TypeError exception is thrown'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#2.1: If the object does not have a [[Call]] property, a TypeError exception is thrown'); + $ERROR('#2.1: If the object does not have a [[Call]] property, a TypeError exception is thrown'); } } diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A2_T2.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A2_T2.js index a6c9d6ead..45f06ff71 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A2_T2.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A2_T2.js @@ -7,7 +7,7 @@ es5id: 15.3.4.4_A2_T2 description: Checking f.call.length, where f is new Function ---*/ -var f = new Function; +var f=new Function; //CHECK#1 if (typeof f.call !== "function") { diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T5.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T5.js index df370cdee..de55a0129 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T5.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T5.js @@ -11,7 +11,7 @@ description: > declaration ---*/ -function FACTORY() { +function FACTORY(){ Function("this.feat=\"in da haus\"").call(); }; diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T6.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T6.js index 297d48abf..20a4d2fad 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T6.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T6.js @@ -12,10 +12,8 @@ description: > flags: [noStrict] ---*/ -function FACTORY() { - (function() { - this.feat = "kamon beyba" - }).call(null); +function FACTORY(){ + (function(){this.feat="kamon beyba"}).call(null); }; var obj = new FACTORY; diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T7.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T7.js index d6a3e721b..b31ef5ae4 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T7.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T7.js @@ -11,7 +11,7 @@ description: > declaration ---*/ -(function FACTORY() { +(function FACTORY(){ Function("this.feat=\"in da haus\"").call(void 0); })(); diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T8.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T8.js index 60ec21eb9..06362d1a0 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T8.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T8.js @@ -12,10 +12,8 @@ description: > flags: [noStrict] ---*/ -(function FACTORY() { - (function() { - this.feat = "kamon beyba" - }).call(undefined); +(function FACTORY(){ + (function(){this.feat="kamon beyba"}).call(undefined); })(); diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T9.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T9.js index 94e0aecc7..ead02bfc2 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T9.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T9.js @@ -9,7 +9,7 @@ es5id: 15.3.4.4_A3_T9 description: Checking by using eval, argument at call function is void 0 ---*/ -eval(" Function(\"this.feat=1\").call(void 0) "); +eval( " Function(\"this.feat=1\").call(void 0) " ); //CHECK#1 diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T1.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T1.js index 91db8755e..7e09b3902 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T1.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T1.js @@ -9,7 +9,7 @@ es5id: 15.3.4.4_A5_T1 description: thisArg is number ---*/ -var obj = 1; +var obj=1; var retobj = Function("this.touched= true; return this;").call(obj); diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T2.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T2.js index 84b8fc456..dd6f658ce 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T2.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T2.js @@ -9,7 +9,7 @@ es5id: 15.3.4.4_A5_T2 description: thisArg is boolean true ---*/ -var obj = true; +var obj=true; var retobj = new Function("this.touched= true; return this;").call(obj); diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T3.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T3.js index b4d2167fd..d71867222 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T3.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T3.js @@ -10,12 +10,9 @@ description: thisArg is string flags: [noStrict] ---*/ -var obj = "soap"; +var obj="soap"; -var retobj = (function() { - this.touched = true; - return this; -}).call(obj); +var retobj = ( function(){this.touched= true; return this;} ).call(obj); //CHECK#1 if (typeof obj.touched !== "undefined") { diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T4.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T4.js index 23fa06219..b0799cf00 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T4.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T4.js @@ -10,10 +10,7 @@ description: thisArg is function variable that return this flags: [noStrict] ---*/ -var f = function() { - this.touched = true; - return this; -}; +var f = function(){this.touched= true; return this;}; var retobj = f.call(obj); diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T5.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T5.js index 9857f09e4..a2e307928 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T5.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T5.js @@ -9,11 +9,9 @@ es5id: 15.3.4.4_A5_T5 description: thisArg is function variable ---*/ -var f = function() { - this.touched = true; -}; +var f = function(){this.touched= true;}; -var obj = {}; +var obj={}; f.call(obj); diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T6.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T6.js index 7ffe1a4d6..e8fe5d4d8 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T6.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T6.js @@ -9,11 +9,9 @@ es5id: 15.3.4.4_A5_T6 description: thisArg is new String() ---*/ -var obj = new String("soap"); +var obj=new String("soap"); -(function() { - this.touched = true; -}).call(obj); +( function(){this.touched= true;}).call(obj); //CHECK#1 if (!(obj.touched)) { diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T7.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T7.js index 9dc90b7ca..7cbce9229 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T7.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T7.js @@ -9,7 +9,7 @@ es5id: 15.3.4.4_A5_T7 description: thisArg is new Number() ---*/ -var obj = new Number(1); +var obj=new Number(1); Function("this.touched= true;").call(obj); diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T8.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T8.js index 9955eb6d5..debf82396 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T8.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T8.js @@ -9,7 +9,7 @@ es5id: 15.3.4.4_A5_T8 description: thisArg is Function() ---*/ -var obj = Function(); +var obj=Function(); new Function("this.touched= true; return this;").call(obj); diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T1.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T1.js index 089063475..f8e0aba15 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T1.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T1.js @@ -9,7 +9,7 @@ es5id: 15.3.4.4_A6_T1 description: Argunemts of call function is (null,[1]) ---*/ -Function("a1,a2,a3", "this.shifted=a1;").call(null, [1]); +Function("a1,a2,a3","this.shifted=a1;").call(null,[1]); //CHECK#1 if (this["shifted"].constructor !== Array) { diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T10.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T10.js index be97b1f58..fed1b7aad 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T10.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T10.js @@ -11,11 +11,11 @@ description: > inside function call without declaration used ---*/ -var obj = {}; +var obj={}; -(function() { - Function("a1,a2,a3", "this.shifted=a1.length+a2+a3;").call(obj, arguments, "", "2"); -})("", 4, 2, "a"); +(function (){ + Function("a1,a2,a3","this.shifted=a1.length+a2+a3;").call(obj,arguments,"","2"); +})("",4,2,"a"); //CHECK#1 if (obj["shifted"] !== "42") { diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T2.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T2.js index 5620f4077..989080fa0 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T2.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T2.js @@ -9,7 +9,7 @@ es5id: 15.3.4.4_A6_T2 description: Argunemts of call function is (null,[3,2,1]) ---*/ -new Function("a1,a2", "a3", "this.shifted=a1;").call(null, [3, 2, 1]); +new Function("a1,a2","a3","this.shifted=a1;").call(null,[3,2,1]); //CHECK#1 if (this["shifted"].length !== 3) { @@ -17,6 +17,6 @@ if (this["shifted"].length !== 3) { } //CHECK#2 -if ((this["shifted"][0] !== 3) || (this["shifted"][1] !== 2) || (this["shifted"][2] !== 1)) { +if ((this["shifted"][0] !== 3)||(this["shifted"][1] !== 2)||(this["shifted"][2] !== 1)) { $ERROR('#2: The call method takes one or more arguments, thisArg and (optionally) arg1, arg2 etc, and performs a function call using the [[Call]] property of the object'); } diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T3.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T3.js index 05368a6c2..b70556e03 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T3.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T3.js @@ -11,17 +11,13 @@ description: > Array("nine","inch","nails")) ---*/ -var i = 0; +var i=0; -var p = { - toString: function() { - return "a" + (++i); - } -}; +var p={toString:function(){return "a"+(++i);}}; -var obj = {}; +var obj={}; -Function(p, "a2,a3", "this.shifted=a1;").call(obj, new Array("nine", "inch", "nails")); +Function(p,"a2,a3","this.shifted=a1;").call(obj, new Array("nine","inch","nails")); //CHECK#1 if (obj["shifted"].length !== 3) { @@ -29,7 +25,7 @@ if (obj["shifted"].length !== 3) { } //CHECK#2 -if ((obj["shifted"][0] !== "nine") || (obj["shifted"][1] !== "inch") || (obj["shifted"][2] !== "nails")) { +if ((obj["shifted"][0] !== "nine")||(obj["shifted"][1] !== "inch")||(obj["shifted"][2] !== "nails")) { $ERROR('#2: The call method takes one or more arguments, thisArg and (optionally) arg1, arg2 etc, and performs a function call using the [[Call]] property of the object'); } diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T4.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T4.js index 312557514..5b51b1d8e 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T4.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T4.js @@ -11,19 +11,13 @@ description: > arguments;})("a","b","c","d"),"",2) ---*/ -var i = 0; +var i=0; -var p = { - toString: function() { - return "a" + (++i); - } -}; +var p={toString:function(){return "a"+(++i);}}; -var obj = {}; +var obj={}; -new Function(p, p, p, "this.shifted=a3+a2+a1.length;").call(obj, (function() { - return arguments; -})("a", "b", "c", "d"), "", 2); +new Function(p,p,p, "this.shifted=a3+a2+a1.length;").call( obj,( function(){return arguments;})("a","b","c","d"),"",2 ); //CHECK#1 if (obj["shifted"] !== "24") { diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T5.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T5.js index ac798300c..b049d45ce 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T5.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T5.js @@ -11,11 +11,11 @@ description: > function declaration used ---*/ -function FACTORY() { - Function("a1,a2,a3", "this.shifted=a1.length+a2+a3;").call(null, arguments, "", 2); +function FACTORY(){ + Function("a1,a2,a3","this.shifted=a1.length+a2+a3;").call(null,arguments,"",2); } -var obj = new FACTORY("", 1, 2, "A"); +var obj=new FACTORY("",1,2,"A"); //CHECK#1 if (this["shifted"] !== "42") { diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T6.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T6.js index 7956ab5ac..597feba63 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T6.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T6.js @@ -11,11 +11,11 @@ description: > function declaration used ---*/ -function FACTORY() { - Function("a1,a2,a3", "this.shifted=a1.length+a2+a3;").call(this, arguments, "", 2); +function FACTORY(){ + Function("a1,a2,a3","this.shifted=a1.length+a2+a3;").call(this,arguments,"",2); } -var obj = new FACTORY("", 4, 2, "A"); +var obj=new FACTORY("",4,2,"A"); //CHECK#1 if (obj["shifted"] !== "42") { diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T7.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T7.js index 2c29c4725..cfce0647d 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T7.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T7.js @@ -11,9 +11,9 @@ description: > function call without declaration used ---*/ -(function() { - Function("a1,a2,a3", "this.shifted=a1.length+a2+a3;").call(null, arguments, "", 2); -})("", 1, 2, true); +(function (){ + Function("a1,a2,a3","this.shifted=a1.length+a2+a3;").call(null,arguments,"",2); +})("",1,2,true); //CHECK#1 if (this["shifted"] !== "42") { diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T8.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T8.js index 1978d9acf..9601af80c 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T8.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T8.js @@ -11,9 +11,9 @@ description: > function call without declaration used ---*/ -(function() { - Function("a1,a2,a3", "this.shifted=a1.length+a2+a3;").call(this, arguments, "", 2); -})("", 4, 2, null); +(function (){ + Function("a1,a2,a3","this.shifted=a1.length+a2+a3;").call(this,arguments,"",2); +})("",4,2,null); //CHECK#2 if (this["shifted"] !== "42") { diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T9.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T9.js index 99bf13b9d..d93a3e2a1 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T9.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T9.js @@ -11,13 +11,13 @@ description: > inside function declaration used ---*/ -function FACTORY() { +function FACTORY(){ var obj = {}; - Function("a1,a2,a3", "this.shifted=a1+a2.length+a3;").call(obj, "", arguments, 2); + Function("a1,a2,a3","this.shifted=a1+a2.length+a3;").call(obj,"",arguments,2); return obj; } -var obj = new FACTORY("", 1, 2, void 0); +var obj=new FACTORY("",1,2,void 0); //CHECK#1 if (typeof this["shifted"] !== "undefined") { diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A7_T4.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A7_T4.js index 7cec40c13..f3dee9603 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A7_T4.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A7_T4.js @@ -8,7 +8,7 @@ description: Checking if creating "new (Function("this.p1=1").call)" fails ---*/ try { - var obj = new(Function("this.p1=1").call); + var obj = new (Function("this.p1=1").call); $ERROR('#1: Function.prototype.call can\'t be used as [[Construct]] caller'); } catch (e) { if (!(e instanceof TypeError)) { diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A7_T6.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A7_T6.js index 8bf0e67bb..d88e10c02 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A7_T6.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A7_T6.js @@ -11,12 +11,12 @@ description: > //CHECK#1 try { - var obj = new(Function("function f(){this.p1=1;};return f").call()); + var obj = new (Function("function f(){this.p1=1;};return f").call()); } catch (e) { $ERROR('#1: Function.prototype.call can\'t be used as [[Construct]] caller'); } //CHECK#2 -if (obj.p1 !== 1) { +if (obj.p1!== 1) { $ERROR('#2: Function.prototype.call can\'t be used as [[Construct]] caller'); } diff --git a/test/built-ins/Function/prototype/restricted-property-arguments.js b/test/built-ins/Function/prototype/restricted-property-arguments.js index 1faf047ba..5010b3dee 100644 --- a/test/built-ins/Function/prototype/restricted-property-arguments.js +++ b/test/built-ins/Function/prototype/restricted-property-arguments.js @@ -17,7 +17,7 @@ assert.sameValue(typeof descriptor.set, 'function', '%FunctionPrototype%.argumen assert.sameValue(descriptor.get, descriptor.set, '%FunctionPrototype%.arguments getter/setter are both %ThrowTypeError%'); assert.throws(TypeError, function() { - return FunctionPrototype.arguments; + return FunctionPrototype.arguments; }); assert.throws(TypeError, function() { diff --git a/test/built-ins/Function/prototype/restricted-property-caller.js b/test/built-ins/Function/prototype/restricted-property-caller.js index e069ee7c9..bd4003298 100644 --- a/test/built-ins/Function/prototype/restricted-property-caller.js +++ b/test/built-ins/Function/prototype/restricted-property-caller.js @@ -18,7 +18,7 @@ assert.sameValue(typeof descriptor.set, 'function', '%FunctionPrototype%.caller assert.sameValue(descriptor.get, descriptor.set, '%FunctionPrototype%.caller getter/setter are both %ThrowTypeError%'); assert.throws(TypeError, function() { - return FunctionPrototype.caller; + return FunctionPrototype.caller; }); assert.throws(TypeError, function() { diff --git a/test/built-ins/Function/prototype/toString/AsyncFunction.js b/test/built-ins/Function/prototype/toString/AsyncFunction.js index c9d1d4495..804d9e17f 100644 --- a/test/built-ins/Function/prototype/toString/AsyncFunction.js +++ b/test/built-ins/Function/prototype/toString/AsyncFunction.js @@ -11,5 +11,5 @@ features: [async-functions] ---*/ async function f() {} var AsyncFunction = f.constructor; -var g = /* before */ AsyncFunction("a", " /* a */ b, c /* b */ //", "/* c */ ; /* d */ //") /* after */ ; +var g = /* before */AsyncFunction("a", " /* a */ b, c /* b */ //", "/* c */ ; /* d */ //")/* after */; assert.sameValue(g.toString(), "async function anonymous(a, /* a */ b, c /* b */ //\n) {\n/* c */ ; /* d */ //\n}"); diff --git a/test/built-ins/Function/prototype/toString/AsyncGenerator.js b/test/built-ins/Function/prototype/toString/AsyncGenerator.js index de753afdd..43cce215e 100644 --- a/test/built-ins/Function/prototype/toString/AsyncGenerator.js +++ b/test/built-ins/Function/prototype/toString/AsyncGenerator.js @@ -12,5 +12,5 @@ features: [async-iteration] async function* f() {} var AsyncGenerator = f.constructor; -var g = /* before */ AsyncGenerator("a", " /* a */ b, c /* b */ //", "/* c */ ; /* d */ //") /* after */ ; +var g = /* before */AsyncGenerator("a", " /* a */ b, c /* b */ //", "/* c */ ; /* d */ //")/* after */; assert.sameValue(g.toString(), "async function* anonymous(a, /* a */ b, c /* b */ //\n) {\n/* c */ ; /* d */ //\n}"); diff --git a/test/built-ins/Function/prototype/toString/Function.js b/test/built-ins/Function/prototype/toString/Function.js index dd75ab84f..2f0362a8d 100644 --- a/test/built-ins/Function/prototype/toString/Function.js +++ b/test/built-ins/Function/prototype/toString/Function.js @@ -6,6 +6,6 @@ esid: sec-createdynamicfunction description: Function.prototype.toString on a function created with the Function constructor ---*/ -let f = /* before */ Function("a", " /* a */ b, c /* b */ //", "/* c */ ; /* d */ //") /* after */ ; +let f = /* before */Function("a", " /* a */ b, c /* b */ //", "/* c */ ; /* d */ //")/* after */; assert.sameValue(f.toString(), "function anonymous(a, /* a */ b, c /* b */ //\n) {\n/* c */ ; /* d */ //\n}"); diff --git a/test/built-ins/Function/prototype/toString/GeneratorFunction.js b/test/built-ins/Function/prototype/toString/GeneratorFunction.js index 35a5a7a7e..523f1cd2a 100644 --- a/test/built-ins/Function/prototype/toString/GeneratorFunction.js +++ b/test/built-ins/Function/prototype/toString/GeneratorFunction.js @@ -7,7 +7,7 @@ description: Function.prototype.toString on a generator function created with th features: [generators] ---*/ -let GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; -let g = /* before */ GeneratorFunction("a", " /* a */ b, c /* b */ //", "/* c */ yield yield; /* d */ //") /* after */ ; +let GeneratorFunction = Object.getPrototypeOf(function*(){}).constructor; +let g = /* before */GeneratorFunction("a", " /* a */ b, c /* b */ //", "/* c */ yield yield; /* d */ //")/* after */; assert.sameValue(g.toString(), "function* anonymous(a, /* a */ b, c /* b */ //\n) {\n/* c */ yield yield; /* d */ //\n}"); diff --git a/test/built-ins/Function/prototype/toString/S15.3.4.2_A10.js b/test/built-ins/Function/prototype/toString/S15.3.4.2_A10.js index 99c46fb0e..7391b67ed 100644 --- a/test/built-ins/Function/prototype/toString/S15.3.4.2_A10.js +++ b/test/built-ins/Function/prototype/toString/S15.3.4.2_A10.js @@ -17,9 +17,7 @@ if (!(Function.prototype.toString.hasOwnProperty('length'))) { var obj = Function.prototype.toString.length; -verifyNotWritable(Function.prototype.toString, "length", null, function() { - return "shifted"; -}); +verifyNotWritable(Function.prototype.toString, "length", null, function(){return "shifted";}); //CHECK#2 if (Function.prototype.toString.length !== obj) { diff --git a/test/built-ins/Function/prototype/toString/S15.3.4.2_A16.js b/test/built-ins/Function/prototype/toString/S15.3.4.2_A16.js index 5f367dd45..4cba0c3b5 100644 --- a/test/built-ins/Function/prototype/toString/S15.3.4.2_A16.js +++ b/test/built-ins/Function/prototype/toString/S15.3.4.2_A16.js @@ -12,9 +12,7 @@ description: > bound to that object. ---*/ -var obj = { - toString: Function.prototype.toString -}; +var obj = {toString: Function.prototype.toString}; assert.throws(TypeError, function() { String(obj); diff --git a/test/built-ins/Function/prototype/toString/S15.3.4.2_A6.js b/test/built-ins/Function/prototype/toString/S15.3.4.2_A6.js index e85937944..a3d4e3b16 100644 --- a/test/built-ins/Function/prototype/toString/S15.3.4.2_A6.js +++ b/test/built-ins/Function/prototype/toString/S15.3.4.2_A6.js @@ -11,5 +11,5 @@ description: > //CHECK#1 if (Function.prototype.toString.prototype !== undefined) { - $ERROR('#1: Function.prototype.toString has not prototype property' + Function.prototype.toString.prototype); + $ERROR('#1: Function.prototype.toString has not prototype property'+Function.prototype.toString.prototype); } diff --git a/test/built-ins/Function/prototype/toString/S15.3.4.2_A8.js b/test/built-ins/Function/prototype/toString/S15.3.4.2_A8.js index 23b8b0ee2..b730a6ec2 100644 --- a/test/built-ins/Function/prototype/toString/S15.3.4.2_A8.js +++ b/test/built-ins/Function/prototype/toString/S15.3.4.2_A8.js @@ -21,7 +21,7 @@ if (Function.prototype.toString.propertyIsEnumerable('length')) { } // CHECK#2 -for (var p in Function.prototype.toString) { - if (p === "length") - $ERROR('#2: the Function.prototype.toString.length property has the attributes DontEnum'); +for (var p in Function.prototype.toString){ + if (p==="length") + $ERROR('#2: the Function.prototype.toString.length property has the attributes DontEnum'); } diff --git a/test/built-ins/Function/prototype/toString/arrow-function.js b/test/built-ins/Function/prototype/toString/arrow-function.js index 62fab71ae..06990b14c 100644 --- a/test/built-ins/Function/prototype/toString/arrow-function.js +++ b/test/built-ins/Function/prototype/toString/arrow-function.js @@ -6,10 +6,9 @@ esid: sec-arrow-function-definitions-runtime-semantics-evaluation description: Function.prototype.toString on an arrow function ---*/ -let f = /* before */ ( /* a */ a /* b */ , /* c */ b /* d */ ) /* e */ => /* f */ { /* g */ ; /* h */ -} /* after */ ; -let g = /* before */ ( /* a */ ) /* b */ => /* c */ 0 /* after */ ; -let h = /* before */ a /* a */ => /* b */ 0 /* after */ ; +let f = /* before */( /* a */ a /* b */ , /* c */ b /* d */ ) /* e */ => /* f */ { /* g */ ; /* h */ }/* after */; +let g = /* before */( /* a */ ) /* b */ => /* c */ 0/* after */; +let h = /* before */a /* a */ => /* b */ 0/* after */; assert.sameValue(f.toString(), "( /* a */ a /* b */ , /* c */ b /* d */ ) /* e */ => /* f */ { /* g */ ; /* h */ }"); assert.sameValue(g.toString(), "( /* a */ ) /* b */ => /* c */ 0"); diff --git a/test/built-ins/Function/prototype/toString/async-arrow-function.js b/test/built-ins/Function/prototype/toString/async-arrow-function.js index 1dff802ee..39a2a0388 100644 --- a/test/built-ins/Function/prototype/toString/async-arrow-function.js +++ b/test/built-ins/Function/prototype/toString/async-arrow-function.js @@ -7,10 +7,9 @@ description: Function.prototype.toString on an async arrow function features: [async-functions] ---*/ -let f = /* before */ async /* a */ ( /* b */ a /* c */ , /* d */ b /* e */ ) /* f */ => /* g */ { /* h */ ; /* i */ -} /* after */ ; -let g = /* before */ async /* a */ ( /* b */ ) /* c */ => /* d */ 0 /* after */ ; -let h = /* before */ async /* a */ a /* b */ => /* c */ 0 /* after */ ; +let f = /* before */async /* a */ ( /* b */ a /* c */ , /* d */ b /* e */ ) /* f */ => /* g */ { /* h */ ; /* i */ }/* after */; +let g = /* before */async /* a */ ( /* b */ ) /* c */ => /* d */ 0/* after */; +let h = /* before */async /* a */ a /* b */ => /* c */ 0/* after */; assert.sameValue(f.toString(), "async /* a */ ( /* b */ a /* c */ , /* d */ b /* e */ ) /* f */ => /* g */ { /* h */ ; /* i */ }"); assert.sameValue(g.toString(), "async /* a */ ( /* b */ ) /* c */ => /* d */ 0"); diff --git a/test/built-ins/Function/prototype/toString/async-function-declaration.js b/test/built-ins/Function/prototype/toString/async-function-declaration.js index c1f62a5f0..4b909bbf7 100644 --- a/test/built-ins/Function/prototype/toString/async-function-declaration.js +++ b/test/built-ins/Function/prototype/toString/async-function-declaration.js @@ -8,8 +8,6 @@ description: Function.prototype.toString on an async function declaration features: [async-functions] ---*/ -/* before */ -async function /* a */ f /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ -} /* after */ +/* before */async function /* a */ f /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }/* after */ assert.sameValue(f.toString(), "async function /* a */ f /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }"); diff --git a/test/built-ins/Function/prototype/toString/async-function-expression.js b/test/built-ins/Function/prototype/toString/async-function-expression.js index 6d38d2746..6b7f26bd5 100644 --- a/test/built-ins/Function/prototype/toString/async-function-expression.js +++ b/test/built-ins/Function/prototype/toString/async-function-expression.js @@ -8,10 +8,8 @@ description: Function.prototype.toString on an async function expression features: [async-functions] ---*/ -let f = /* before */ async function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ -} /* after */ ; -let g = /* before */ async function /* a */ ( /* b */ x /* c */ , /* d */ y /* e */ ) /* f */ { /* g */ ; /* h */ ; /* i */ -} /* after */ ; +let f = /* before */async function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }/* after */; +let g = /* before */async function /* a */ ( /* b */ x /* c */ , /* d */ y /* e */ ) /* f */ { /* g */ ; /* h */ ; /* i */ }/* after */; assert.sameValue(f.toString(), "async function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }"); assert.sameValue(g.toString(), "async function /* a */ ( /* b */ x /* c */ , /* d */ y /* e */ ) /* f */ { /* g */ ; /* h */ ; /* i */ }"); diff --git a/test/built-ins/Function/prototype/toString/async-generator-declaration.js b/test/built-ins/Function/prototype/toString/async-generator-declaration.js index f4bdcde60..9a5bb3f3d 100644 --- a/test/built-ins/Function/prototype/toString/async-generator-declaration.js +++ b/test/built-ins/Function/prototype/toString/async-generator-declaration.js @@ -7,8 +7,6 @@ description: Function.prototype.toString on an async generator declaration features: [async-iteration] ---*/ -/* before */ -async /* a */ function /* b */ * /* c */ f /* d */ ( /* e */ x /* f */ , /* g */ y /* h */ ) /* i */ { /* j */ ; /* k */ ; /* l */ -} /* after */ +/* before */async /* a */ function /* b */ * /* c */ f /* d */ ( /* e */ x /* f */ , /* g */ y /* h */ ) /* i */ { /* j */ ; /* k */ ; /* l */ }/* after */ assert.sameValue(f.toString(), "async /* a */ function /* b */ * /* c */ f /* d */ ( /* e */ x /* f */ , /* g */ y /* h */ ) /* i */ { /* j */ ; /* k */ ; /* l */ }"); diff --git a/test/built-ins/Function/prototype/toString/async-generator-expression.js b/test/built-ins/Function/prototype/toString/async-generator-expression.js index 1332f6c93..60a712820 100644 --- a/test/built-ins/Function/prototype/toString/async-generator-expression.js +++ b/test/built-ins/Function/prototype/toString/async-generator-expression.js @@ -7,10 +7,8 @@ description: Function.prototype.toString on an async generator expression features: [async-iteration] ---*/ -let f = /* before */ async /* a */ function /* b */ * /* c */ F /* d */ ( /* e */ x /* f */ , /* g */ y /* h */ ) /* i */ { /* j */ ; /* k */ ; /* l */ -} /* after */ ; -let g = /* before */ async /* a */ function /* b */ * /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */ -} /* after */ ; +let f = /* before */async /* a */ function /* b */ * /* c */ F /* d */ ( /* e */ x /* f */ , /* g */ y /* h */ ) /* i */ { /* j */ ; /* k */ ; /* l */ }/* after */; +let g = /* before */async /* a */ function /* b */ * /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */ }/* after */; assert.sameValue(f.toString(), "async /* a */ function /* b */ * /* c */ F /* d */ ( /* e */ x /* f */ , /* g */ y /* h */ ) /* i */ { /* j */ ; /* k */ ; /* l */ }"); assert.sameValue(g.toString(), "async /* a */ function /* b */ * /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */ }"); diff --git a/test/built-ins/Function/prototype/toString/async-generator-method-class-expression-static.js b/test/built-ins/Function/prototype/toString/async-generator-method-class-expression-static.js index fbe7fd3a9..03ac897e2 100644 --- a/test/built-ins/Function/prototype/toString/async-generator-method-class-expression-static.js +++ b/test/built-ins/Function/prototype/toString/async-generator-method-class-expression-static.js @@ -8,15 +8,9 @@ features: [async-iteration] ---*/ let x = "h"; -let f = class { - static /* before */ async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ -}.f; -let g = class { - static /* before */ async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */ -}.g; -let h = class { - static /* before */ async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */ -}.h; +let f = class { static /* before */async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }.f; +let g = class { static /* before */async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ }.g; +let h = class { static /* before */async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ }.h; assert.sameValue(f.toString(), "async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ }"); assert.sameValue(g.toString(), "async /* a */ * /* b */ [ /* c */ \"g\" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }"); diff --git a/test/built-ins/Function/prototype/toString/async-generator-method-class-expression.js b/test/built-ins/Function/prototype/toString/async-generator-method-class-expression.js index f51f2ee2c..3c9848558 100644 --- a/test/built-ins/Function/prototype/toString/async-generator-method-class-expression.js +++ b/test/built-ins/Function/prototype/toString/async-generator-method-class-expression.js @@ -8,15 +8,9 @@ features: [async-iteration] ---*/ let x = "h"; -let f = class { /* before */ - async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ -}.prototype.f; -let g = class { /* before */ - async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */ -}.prototype.g; -let h = class { /* before */ - async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */ -}.prototype.h; +let f = class { /* before */async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }.prototype.f; +let g = class { /* before */async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ }.prototype.g; +let h = class { /* before */async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ }.prototype.h; assert.sameValue(f.toString(), "async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ }"); assert.sameValue(g.toString(), "async /* a */ * /* b */ [ /* c */ \"g\" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }"); diff --git a/test/built-ins/Function/prototype/toString/async-generator-method-class-statement-static.js b/test/built-ins/Function/prototype/toString/async-generator-method-class-statement-static.js index bdbd18607..58d5835eb 100644 --- a/test/built-ins/Function/prototype/toString/async-generator-method-class-statement-static.js +++ b/test/built-ins/Function/prototype/toString/async-generator-method-class-statement-static.js @@ -8,15 +8,9 @@ features: [async-iteration] ---*/ let x = "h"; -class F { - static /* before */ async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ -} -class G { - static /* before */ async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */ -} -class H { - static /* before */ async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */ -} +class F { static /* before */async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ } +class G { static /* before */async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ } +class H { static /* before */async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ } let f = F.f; let g = G.g; diff --git a/test/built-ins/Function/prototype/toString/async-generator-method-class-statement.js b/test/built-ins/Function/prototype/toString/async-generator-method-class-statement.js index acd8b9a52..1001b983c 100644 --- a/test/built-ins/Function/prototype/toString/async-generator-method-class-statement.js +++ b/test/built-ins/Function/prototype/toString/async-generator-method-class-statement.js @@ -8,15 +8,9 @@ features: [async-iteration] ---*/ let x = "h"; -class F { /* before */ - async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ -} -class G { /* before */ - async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */ -} -class H { /* before */ - async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */ -} +class F { /* before */async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ } +class G { /* before */async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ } +class H { /* before */async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ } let f = F.prototype.f; let g = G.prototype.g; diff --git a/test/built-ins/Function/prototype/toString/async-generator-method-object.js b/test/built-ins/Function/prototype/toString/async-generator-method-object.js index f6b2760c5..58a274a85 100644 --- a/test/built-ins/Function/prototype/toString/async-generator-method-object.js +++ b/test/built-ins/Function/prototype/toString/async-generator-method-object.js @@ -8,15 +8,9 @@ features: [async-iteration] ---*/ let x = "h"; -let f = { /* before */ - async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ -}.f; -let g = { /* before */ - async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */ -}.g; -let h = { /* before */ - async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */ -}.h; +let f = { /* before */async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }.f; +let g = { /* before */async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ }.g; +let h = { /* before */async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ }.h; assert.sameValue(f.toString(), "async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ }"); assert.sameValue(g.toString(), "async /* a */ * /* b */ [ /* c */ \"g\" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }"); diff --git a/test/built-ins/Function/prototype/toString/async-method-class-expression-static.js b/test/built-ins/Function/prototype/toString/async-method-class-expression-static.js index b2bc520ee..8388c4dda 100644 --- a/test/built-ins/Function/prototype/toString/async-method-class-expression-static.js +++ b/test/built-ins/Function/prototype/toString/async-method-class-expression-static.js @@ -8,15 +8,9 @@ features: [async-functions] ---*/ let x = "h"; -let f = class { - static /* before */ async f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */ -}.f; -let g = class { - static /* before */ async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ -}.g; -let h = class { - static /* before */ async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ -}.h; +let f = class { static /* before */async f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ }.f; +let g = class { static /* before */async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.g; +let h = class { static /* before */async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.h; assert.sameValue(f.toString(), "async f /* a */ ( /* b */ ) /* c */ { /* d */ }"); assert.sameValue(g.toString(), "async /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }"); diff --git a/test/built-ins/Function/prototype/toString/async-method-class-expression.js b/test/built-ins/Function/prototype/toString/async-method-class-expression.js index a4c84fc76..dcacd9c9d 100644 --- a/test/built-ins/Function/prototype/toString/async-method-class-expression.js +++ b/test/built-ins/Function/prototype/toString/async-method-class-expression.js @@ -8,15 +8,9 @@ features: [async-functions] ---*/ let x = "h"; -let f = class { /* before */ - async f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */ -}.prototype.f; -let g = class { /* before */ - async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ -}.prototype.g; -let h = class { /* before */ - async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ -}.prototype.h; +let f = class { /* before */async f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ }.prototype.f; +let g = class { /* before */async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.prototype.g; +let h = class { /* before */async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.prototype.h; assert.sameValue(f.toString(), "async f /* a */ ( /* b */ ) /* c */ { /* d */ }"); assert.sameValue(g.toString(), "async /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }"); diff --git a/test/built-ins/Function/prototype/toString/async-method-class-statement-static.js b/test/built-ins/Function/prototype/toString/async-method-class-statement-static.js index 641489fbf..56e27d0ea 100644 --- a/test/built-ins/Function/prototype/toString/async-method-class-statement-static.js +++ b/test/built-ins/Function/prototype/toString/async-method-class-statement-static.js @@ -8,15 +8,9 @@ features: [async-functions] ---*/ let x = "h"; -class F { - static /* before */ async f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */ -} -class G { - static /* before */ async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ -} -class H { - static /* before */ async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ -} +class F { static /* before */async f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ } +class G { static /* before */async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ } +class H { static /* before */async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ } let f = F.f; let g = G.g; diff --git a/test/built-ins/Function/prototype/toString/async-method-class-statement.js b/test/built-ins/Function/prototype/toString/async-method-class-statement.js index c5a00b124..50f512607 100644 --- a/test/built-ins/Function/prototype/toString/async-method-class-statement.js +++ b/test/built-ins/Function/prototype/toString/async-method-class-statement.js @@ -8,15 +8,9 @@ features: [async-functions] ---*/ let x = "h"; -class F { /* before */ - async f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */ -} -class G { /* before */ - async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ -} -class H { /* before */ - async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ -} +class F { /* before */async f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ } +class G { /* before */async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ } +class H { /* before */async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ } let f = F.prototype.f; let g = G.prototype.g; diff --git a/test/built-ins/Function/prototype/toString/async-method-object.js b/test/built-ins/Function/prototype/toString/async-method-object.js index 99e6e7670..de117ed4f 100644 --- a/test/built-ins/Function/prototype/toString/async-method-object.js +++ b/test/built-ins/Function/prototype/toString/async-method-object.js @@ -9,15 +9,9 @@ features: [async-functions] ---*/ let x = "h"; -let f = { /* before */ - async f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */ -}.f; -let g = { /* before */ - async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ -}.g; -let h = { /* before */ - async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ -}.h; +let f = { /* before */async f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ }.f; +let g = { /* before */async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.g; +let h = { /* before */async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.h; assert.sameValue(f.toString(), "async f /* a */ ( /* b */ ) /* c */ { /* d */ }"); assert.sameValue(g.toString(), "async /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }"); diff --git a/test/built-ins/Function/prototype/toString/bound-function.js b/test/built-ins/Function/prototype/toString/bound-function.js index f8eca49a5..b6ceb116e 100644 --- a/test/built-ins/Function/prototype/toString/bound-function.js +++ b/test/built-ins/Function/prototype/toString/bound-function.js @@ -7,6 +7,6 @@ description: Function.prototype.toString on bound function exotic objects includes: [nativeFunctionMatcher.js] ---*/ -let f = function() {}.bind(null); +let f = function(){}.bind(null); assert(NATIVE_FUNCTION_RE.test("" + f), "looks pretty much like a NativeFunction"); diff --git a/test/built-ins/Function/prototype/toString/class-declaration-complex-heritage.js b/test/built-ins/Function/prototype/toString/class-declaration-complex-heritage.js index b2956cf56..dbf60ee83 100644 --- a/test/built-ins/Function/prototype/toString/class-declaration-complex-heritage.js +++ b/test/built-ins/Function/prototype/toString/class-declaration-complex-heritage.js @@ -6,7 +6,6 @@ esid: sec-runtime-semantics-bindingclassdeclarationevaluation description: Function.prototype.toString on a class declaration (with complex heritage) ---*/ -/* before */ -class /* a */ A /* b */ extends /* c */ class /* d */ B /* e */ { /* f */ } /* g */ { /* h */ } /* after */ +/* before */class /* a */ A /* b */ extends /* c */ class /* d */ B /* e */ { /* f */ } /* g */ { /* h */ }/* after */ assert.sameValue(A.toString(), "class /* a */ A /* b */ extends /* c */ class /* d */ B /* e */ { /* f */ } /* g */ { /* h */ }"); diff --git a/test/built-ins/Function/prototype/toString/class-declaration-explicit-ctor.js b/test/built-ins/Function/prototype/toString/class-declaration-explicit-ctor.js index a015ab88d..c3b4b264f 100644 --- a/test/built-ins/Function/prototype/toString/class-declaration-explicit-ctor.js +++ b/test/built-ins/Function/prototype/toString/class-declaration-explicit-ctor.js @@ -6,13 +6,8 @@ esid: sec-runtime-semantics-bindingclassdeclarationevaluation description: Function.prototype.toString on a class declaration (explicit constructor) ---*/ -/* before */ -class /* a */ A /* b */ extends /* c */ B /* d */ { /* e */ - constructor /* f */ ( /* g */ ) /* h */ { /* i */ ; /* j */ - } /* k */ - m /* l */ ( /* m */ ) /* n */ { /* o */ } /* p */ -} /* after */ +/* before */class /* a */ A /* b */ extends /* c */ B /* d */ { /* e */ constructor /* f */ ( /* g */ ) /* h */ { /* i */ ; /* j */ } /* k */ m /* l */ ( /* m */ ) /* n */ { /* o */ } /* p */ }/* after */ assert.sameValue(A.toString(), "class /* a */ A /* b */ extends /* c */ B /* d */ { /* e */ constructor /* f */ ( /* g */ ) /* h */ { /* i */ ; /* j */ } /* k */ m /* l */ ( /* m */ ) /* n */ { /* o */ } /* p */ }"); -function B() {} +function B(){} diff --git a/test/built-ins/Function/prototype/toString/class-declaration-implicit-ctor.js b/test/built-ins/Function/prototype/toString/class-declaration-implicit-ctor.js index bb89e2969..9dea84bb6 100644 --- a/test/built-ins/Function/prototype/toString/class-declaration-implicit-ctor.js +++ b/test/built-ins/Function/prototype/toString/class-declaration-implicit-ctor.js @@ -6,14 +6,9 @@ esid: sec-runtime-semantics-bindingclassdeclarationevaluation description: Function.prototype.toString on a class declaration (implicit constructor) ---*/ -/* before */ -class /* a */ A /* b */ { /* c */ } /* after */ -/* before */ -class /* a */ B /* b */ extends /* c */ A /* d */ { /* e */ } /* after */ -/* before */ -class /* a */ C /* b */ extends /* c */ B /* d */ { /* e */ - m /* f */ ( /* g */ ) /* h */ { /* i */ } /* j */ -} /* after */ +/* before */class /* a */ A /* b */ { /* c */ }/* after */ +/* before */class /* a */ B /* b */ extends /* c */ A /* d */ { /* e */ }/* after */ +/* before */class /* a */ C /* b */ extends /* c */ B /* d */ { /* e */ m /* f */ ( /* g */ ) /* h */ { /* i */ } /* j */ }/* after */ assert.sameValue(A.toString(), "class /* a */ A /* b */ { /* c */ }"); assert.sameValue(B.toString(), "class /* a */ B /* b */ extends /* c */ A /* d */ { /* e */ }"); diff --git a/test/built-ins/Function/prototype/toString/class-expression-explicit-ctor.js b/test/built-ins/Function/prototype/toString/class-expression-explicit-ctor.js index c6fdcc5b1..93d744847 100644 --- a/test/built-ins/Function/prototype/toString/class-expression-explicit-ctor.js +++ b/test/built-ins/Function/prototype/toString/class-expression-explicit-ctor.js @@ -6,12 +6,8 @@ esid: sec-class-definitions-runtime-semantics-evaluation description: Function.prototype.toString on a class expression (explicit constructor) ---*/ -let A = /* before */ class /* a */ A /* b */ extends /* c */ B /* d */ { /* e */ - constructor /* f */ ( /* g */ ) /* h */ { /* i */ ; /* j */ - } /* k */ - m /* l */ ( /* m */ ) /* n */ { /* o */ } /* p */ -} /* after */ ; +let A = /* before */class /* a */ A /* b */ extends /* c */ B /* d */ { /* e */ constructor /* f */ ( /* g */ ) /* h */ { /* i */ ; /* j */ } /* k */ m /* l */ ( /* m */ ) /* n */ { /* o */ } /* p */ }/* after */; assert.sameValue(A.toString(), "class /* a */ A /* b */ extends /* c */ B /* d */ { /* e */ constructor /* f */ ( /* g */ ) /* h */ { /* i */ ; /* j */ } /* k */ m /* l */ ( /* m */ ) /* n */ { /* o */ } /* p */ }"); -function B() {} +function B(){} diff --git a/test/built-ins/Function/prototype/toString/class-expression-implicit-ctor.js b/test/built-ins/Function/prototype/toString/class-expression-implicit-ctor.js index 07b2a9a00..91ab62134 100644 --- a/test/built-ins/Function/prototype/toString/class-expression-implicit-ctor.js +++ b/test/built-ins/Function/prototype/toString/class-expression-implicit-ctor.js @@ -6,11 +6,9 @@ esid: sec-class-definitions-runtime-semantics-evaluation description: Function.prototype.toString on a class expression (implicit constructor) ---*/ -let A = /* before */ class /* a */ A /* b */ { /* c */ } /* after */ ; -let B = /* before */ class /* a */ B /* b */ extends /* c */ A /* d */ { /* e */ } /* after */ ; -let C = /* before */ class /* a */ C /* b */ extends /* c */ B /* d */ { /* e */ - m /* f */ ( /* g */ ) /* h */ { /* i */ } /* j */ -} /* after */ ; +let A = /* before */class /* a */ A /* b */ { /* c */ }/* after */; +let B = /* before */class /* a */ B /* b */ extends /* c */ A /* d */ { /* e */ }/* after */; +let C = /* before */class /* a */ C /* b */ extends /* c */ B /* d */ { /* e */ m /* f */ ( /* g */ ) /* h */ { /* i */ } /* j */ }/* after */; assert.sameValue(A.toString(), "class /* a */ A /* b */ { /* c */ }"); assert.sameValue(B.toString(), "class /* a */ B /* b */ extends /* c */ A /* d */ { /* e */ }"); diff --git a/test/built-ins/Function/prototype/toString/function-declaration-non-simple-parameter-list.js b/test/built-ins/Function/prototype/toString/function-declaration-non-simple-parameter-list.js index 3b5acaa73..7ff7971e0 100644 --- a/test/built-ins/Function/prototype/toString/function-declaration-non-simple-parameter-list.js +++ b/test/built-ins/Function/prototype/toString/function-declaration-non-simple-parameter-list.js @@ -6,9 +6,6 @@ esid: sec-function-definitions-runtime-semantics-instantiatefunctionobject description: Function.prototype.toString on a function with a non-simple parameter list ---*/ -/* before */ -function /* a */ f /* b */ ( /* c */ a /* d */ = /* e */ 0 /* f */ , /* g */ { /* h */ - b /* i */ = /* j */ 0 /* k */ -} /* l */ ) /* m */ { /* n */ } /* after */ +/* before */function /* a */ f /* b */ ( /* c */ a /* d */ = /* e */ 0 /* f */ , /* g */ { /* h */ b /* i */ = /* j */ 0 /* k */ } /* l */ ) /* m */ { /* n */ }/* after */ assert.sameValue(f.toString(), "function /* a */ f /* b */ ( /* c */ a /* d */ = /* e */ 0 /* f */ , /* g */ { /* h */ b /* i */ = /* j */ 0 /* k */ } /* l */ ) /* m */ { /* n */ }"); diff --git a/test/built-ins/Function/prototype/toString/function-declaration.js b/test/built-ins/Function/prototype/toString/function-declaration.js index 0d2db3877..a0446ba71 100644 --- a/test/built-ins/Function/prototype/toString/function-declaration.js +++ b/test/built-ins/Function/prototype/toString/function-declaration.js @@ -6,8 +6,6 @@ esid: sec-function-definitions-runtime-semantics-instantiatefunctionobject description: Function.prototype.toString on a function declaration ---*/ -/* before */ -function /* a */ f /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ -} /* after */ +/* before */function /* a */ f /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }/* after */ assert.sameValue(f.toString(), "function /* a */ f /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }"); diff --git a/test/built-ins/Function/prototype/toString/function-expression.js b/test/built-ins/Function/prototype/toString/function-expression.js index 5c67dd8af..b1bcedaf4 100644 --- a/test/built-ins/Function/prototype/toString/function-expression.js +++ b/test/built-ins/Function/prototype/toString/function-expression.js @@ -6,10 +6,8 @@ esid: sec-function-definitions-runtime-semantics-evaluation description: Function.prototype.toString on a function expression ---*/ -let f = /* before */ function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ -} /* after */ ; -let g = /* before */ function /* a */ ( /* b */ x /* c */ , /* d */ y /* e */ ) /* f */ { /* g */ ; /* h */ ; /* i */ -} /* after */ ; +let f = /* before */function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }/* after */; +let g = /* before */function /* a */ ( /* b */ x /* c */ , /* d */ y /* e */ ) /* f */ { /* g */ ; /* h */ ; /* i */ }/* after */; assert.sameValue(f.toString(), "function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }"); assert.sameValue(g.toString(), "function /* a */ ( /* b */ x /* c */ , /* d */ y /* e */ ) /* f */ { /* g */ ; /* h */ ; /* i */ }"); diff --git a/test/built-ins/Function/prototype/toString/generator-function-declaration.js b/test/built-ins/Function/prototype/toString/generator-function-declaration.js index cab7f840d..133f9af8c 100644 --- a/test/built-ins/Function/prototype/toString/generator-function-declaration.js +++ b/test/built-ins/Function/prototype/toString/generator-function-declaration.js @@ -6,8 +6,6 @@ esid: sec-generator-function-definitions-runtime-semantics-instantiatefunctionob description: Function.prototype.toString on a generator function declaration ---*/ -/* before */ -function /* a */ * /* b */ g /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */ -} /* after */ +/* before */function /* a */ * /* b */ g /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */ }/* after */ assert.sameValue(g.toString(), "function /* a */ * /* b */ g /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */ }"); diff --git a/test/built-ins/Function/prototype/toString/generator-function-expression.js b/test/built-ins/Function/prototype/toString/generator-function-expression.js index 6d1dae971..d175055ec 100644 --- a/test/built-ins/Function/prototype/toString/generator-function-expression.js +++ b/test/built-ins/Function/prototype/toString/generator-function-expression.js @@ -6,10 +6,8 @@ esid: sec-generator-function-definitions-runtime-semantics-evaluation description: Function.prototype.toString on a generator function expression ---*/ -let f = /* before */ function /* a */ * /* b */ F /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */ -} /* after */ -let g = /* before */ function /* a */ * /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ -} /* after */ +let f = /* before */function /* a */ * /* b */ F /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */ }/* after */ +let g = /* before */function /* a */ * /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }/* after */ assert.sameValue(f.toString(), "function /* a */ * /* b */ F /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */ }"); assert.sameValue(g.toString(), "function /* a */ * /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }"); diff --git a/test/built-ins/Function/prototype/toString/generator-method.js b/test/built-ins/Function/prototype/toString/generator-method.js index 041fcbcc6..f5cb5d218 100644 --- a/test/built-ins/Function/prototype/toString/generator-method.js +++ b/test/built-ins/Function/prototype/toString/generator-method.js @@ -7,12 +7,9 @@ description: Function.prototype.toString on a generator method ---*/ let x = "h"; -let f = { /* before */ * /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ } /* after */ -}.f; -let g = { /* before */ * /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ -}.g; -let h = { /* before */ * /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ -}.h; +let f = { /* before */* /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }/* after */ }.f; +let g = { /* before */* /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.g; +let h = { /* before */* /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.h; assert.sameValue(f.toString(), "* /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }"); assert.sameValue(g.toString(), "* /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }"); diff --git a/test/built-ins/Function/prototype/toString/getter-class-expression-static.js b/test/built-ins/Function/prototype/toString/getter-class-expression-static.js index e220cf435..009d92127 100644 --- a/test/built-ins/Function/prototype/toString/getter-class-expression-static.js +++ b/test/built-ins/Function/prototype/toString/getter-class-expression-static.js @@ -7,15 +7,9 @@ description: Function.prototype.toString on a getter (class; static) ---*/ let x = "h"; -let f = Object.getOwnPropertyDescriptor(class { - static /* before */ get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ } /* after */ -}, "f").get; -let g = Object.getOwnPropertyDescriptor(class { - static /* before */ get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ -}, "g").get; -let h = Object.getOwnPropertyDescriptor(class { - static /* before */ get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ -}, "h").get; +let f = Object.getOwnPropertyDescriptor(class { static /* before */get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }/* after */ }, "f").get; +let g = Object.getOwnPropertyDescriptor(class { static /* before */get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }, "g").get; +let h = Object.getOwnPropertyDescriptor(class { static /* before */get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }, "h").get; assert.sameValue(f.toString(), "get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }"); assert.sameValue(g.toString(), "get /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }"); diff --git a/test/built-ins/Function/prototype/toString/getter-class-expression.js b/test/built-ins/Function/prototype/toString/getter-class-expression.js index b5e1d9d69..7b3eef410 100644 --- a/test/built-ins/Function/prototype/toString/getter-class-expression.js +++ b/test/built-ins/Function/prototype/toString/getter-class-expression.js @@ -7,15 +7,9 @@ description: Function.prototype.toString on a getter (class) ---*/ let x = "h"; -let f = Object.getOwnPropertyDescriptor(class { /* before */ - get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ } /* after */ -}.prototype, "f").get; -let g = Object.getOwnPropertyDescriptor(class { /* before */ - get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ -}.prototype, "g").get; -let h = Object.getOwnPropertyDescriptor(class { /* before */ - get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ -}.prototype, "h").get; +let f = Object.getOwnPropertyDescriptor(class { /* before */get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }/* after */ }.prototype, "f").get; +let g = Object.getOwnPropertyDescriptor(class { /* before */get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.prototype, "g").get; +let h = Object.getOwnPropertyDescriptor(class { /* before */get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.prototype, "h").get; assert.sameValue(f.toString(), "get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }"); assert.sameValue(g.toString(), "get /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }"); diff --git a/test/built-ins/Function/prototype/toString/getter-class-statement-static.js b/test/built-ins/Function/prototype/toString/getter-class-statement-static.js index 411a51cbd..4ac72bccd 100644 --- a/test/built-ins/Function/prototype/toString/getter-class-statement-static.js +++ b/test/built-ins/Function/prototype/toString/getter-class-statement-static.js @@ -7,15 +7,9 @@ description: Function.prototype.toString on a getter (class; static) ---*/ let x = "h"; -class F { - static /* before */ get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ } /* after */ -} -class G { - static /* before */ get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ -} -class H { - static /* before */ get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ -} +class F { static /* before */get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }/* after */ } +class G { static /* before */get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ } +class H { static /* before */get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ } let f = Object.getOwnPropertyDescriptor(F, "f").get; let g = Object.getOwnPropertyDescriptor(G, "g").get; diff --git a/test/built-ins/Function/prototype/toString/getter-class-statement.js b/test/built-ins/Function/prototype/toString/getter-class-statement.js index 768500ad2..83139c33c 100644 --- a/test/built-ins/Function/prototype/toString/getter-class-statement.js +++ b/test/built-ins/Function/prototype/toString/getter-class-statement.js @@ -7,15 +7,9 @@ description: Function.prototype.toString on a getter (class) ---*/ let x = "h"; -class F { /* before */ - get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ } /* after */ -} -class G { /* before */ - get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ -} -class H { /* before */ - get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ -} +class F { /* before */get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }/* after */ } +class G { /* before */get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ } +class H { /* before */get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ } let f = Object.getOwnPropertyDescriptor(F.prototype, "f").get; let g = Object.getOwnPropertyDescriptor(G.prototype, "g").get; diff --git a/test/built-ins/Function/prototype/toString/getter-object.js b/test/built-ins/Function/prototype/toString/getter-object.js index 2a7625cd9..3e794d04b 100644 --- a/test/built-ins/Function/prototype/toString/getter-object.js +++ b/test/built-ins/Function/prototype/toString/getter-object.js @@ -7,15 +7,9 @@ description: Function.prototype.toString on a getter (object) ---*/ let x = "h"; -let f = Object.getOwnPropertyDescriptor({ /* before */ - get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ } /* after */ -}, "f").get; -let g = Object.getOwnPropertyDescriptor({ /* before */ - get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ -}, "g").get; -let h = Object.getOwnPropertyDescriptor({ /* before */ - get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ -}, "h").get; +let f = Object.getOwnPropertyDescriptor({ /* before */get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }/* after */ }, "f").get; +let g = Object.getOwnPropertyDescriptor({ /* before */get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }, "g").get; +let h = Object.getOwnPropertyDescriptor({ /* before */get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }, "h").get; assert.sameValue(f.toString(), "get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }"); assert.sameValue(g.toString(), "get /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }"); diff --git a/test/built-ins/Function/prototype/toString/intrinsics.js b/test/built-ins/Function/prototype/toString/intrinsics.js index 61cbff78b..dc1319596 100644 --- a/test/built-ins/Function/prototype/toString/intrinsics.js +++ b/test/built-ins/Function/prototype/toString/intrinsics.js @@ -8,48 +8,11 @@ includes: [nativeFunctionMatcher.js] ---*/ let intrinsics = { - Array, - ArrayBuffer, - Boolean, - DataView, - Date, - decodeURI, - decodeURIComponent, - encodeURI, - encodeURIComponent, - Error, - eval, - EvalError, - Float32Array, - Float64Array, - Function, - Int8Array, - Int16Array, - Int32Array, - isFinite, - isNaN, - Map, - Number, - Object, - parseFloat, - parseInt, - Promise, - Proxy, - RangeError, - ReferenceError, - RegExp, - Set, - String, - Symbol, - SyntaxError, - TypeError, - Uint8Array, - Uint8ClampedArray, - Uint16Array, - Uint32Array, - URIError, - WeakMap, - WeakSet, + Array, ArrayBuffer, Boolean, DataView, Date, decodeURI, decodeURIComponent, encodeURI, + encodeURIComponent, Error, eval, EvalError, Float32Array, Float64Array, Function, Int8Array, + Int16Array, Int32Array, isFinite, isNaN, Map, Number, Object, parseFloat, parseInt, Promise, + Proxy, RangeError, ReferenceError, RegExp, Set, String, Symbol, SyntaxError, TypeError, + Uint8Array, Uint8ClampedArray, Uint16Array, Uint32Array, URIError, WeakMap, WeakSet, }; for (let intrinsicName in intrinsics) { diff --git a/test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR-LF.js b/test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR-LF.js index 8b362356f..93f653936 100644 --- a/test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR-LF.js +++ b/test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR-LF.js @@ -1,36 +1,36 @@ -// Copyright (C) 2016 Michael Ficarra. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-function-definitions-runtime-semantics-instantiatefunctionobject -description: Function.prototype.toString line terminator normalisation (CR-LF) -info: | - Function.prototype.toString should not normalise line terminator sequences to Line Feed characters. - This file uses (Carriage Return, Line Feed) sequences as line terminators. ----*/ - -// before -function -// a -f -// b -( - // c - x - // d - , - // e - y - // f -) -// g -{ - // h - ; - // i - ; - // j -} -// after - -assert.sameValue(f.toString(), "function\r\n// a\r\nf\r\n// b\r\n(\r\n// c\r\nx\r\n// d\r\n,\r\n// e\r\ny\r\n// f\r\n)\r\n// g\r\n{\r\n// h\r\n;\r\n// i\r\n;\r\n// j\r\n}"); +// Copyright (C) 2016 Michael Ficarra. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-function-definitions-runtime-semantics-instantiatefunctionobject
+description: Function.prototype.toString line terminator normalisation (CR-LF)
+info: |
+ Function.prototype.toString should not normalise line terminator sequences to Line Feed characters.
+ This file uses (Carriage Return, Line Feed) sequences as line terminators.
+---*/
+
+// before
+function
+// a
+f
+// b
+(
+// c
+x
+// d
+,
+// e
+y
+// f
+)
+// g
+{
+// h
+;
+// i
+;
+// j
+}
+// after
+
+assert.sameValue(f.toString(), "function\r\n// a\r\nf\r\n// b\r\n(\r\n// c\r\nx\r\n// d\r\n,\r\n// e\r\ny\r\n// f\r\n)\r\n// g\r\n{\r\n// h\r\n;\r\n// i\r\n;\r\n// j\r\n}");
diff --git a/test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR.js b/test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR.js index d71053779..4e55706f6 100644 --- a/test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR.js +++ b/test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR.js @@ -1,36 +1 @@ -// Copyright (C) 2016 Michael Ficarra. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-function-definitions-runtime-semantics-instantiatefunctionobject -description: Function.prototype.toString line terminator normalisation (CR) -info: | - Function.prototype.toString should not normalise line terminator sequences to Line Feed characters. - This file uses Carriage Return characters as line terminators. ----*/ - -// before -function -// a -f -// b -( - // c - x - // d - , - // e - y - // f -) -// g -{ - // h - ; - // i - ; - // j -} -// after - -assert.sameValue(f.toString(), "function\r// a\rf\r// b\r(\r// c\rx\r// d\r,\r// e\ry\r// f\r)\r// g\r{\r// h\r;\r// i\r;\r// j\r}"); +// Copyright (C) 2016 Michael Ficarra. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-function-definitions-runtime-semantics-instantiatefunctionobject
description: Function.prototype.toString line terminator normalisation (CR)
info: |
Function.prototype.toString should not normalise line terminator sequences to Line Feed characters.
This file uses Carriage Return characters as line terminators.
---*/
// before
function
// a
f
// b
(
// c
x
// d
,
// e
y
// f
)
// g
{
// h
;
// i
;
// j
}
// after
assert.sameValue(f.toString(), "function\r// a\rf\r// b\r(\r// c\rx\r// d\r,\r// e\ry\r// f\r)\r// g\r{\r// h\r;\r// i\r;\r// j\r}");
diff --git a/test/built-ins/Function/prototype/toString/line-terminator-normalisation-LF.js b/test/built-ins/Function/prototype/toString/line-terminator-normalisation-LF.js index 35d0a9cf5..69b785543 100644 --- a/test/built-ins/Function/prototype/toString/line-terminator-normalisation-LF.js +++ b/test/built-ins/Function/prototype/toString/line-terminator-normalisation-LF.js @@ -15,21 +15,21 @@ function f // b ( - // c - x - // d - , - // e - y - // f +// c +x +// d +, +// e +y +// f ) // g { - // h - ; - // i - ; - // j +// h +; +// i +; +// j } // after diff --git a/test/built-ins/Function/prototype/toString/method-class-expression-static.js b/test/built-ins/Function/prototype/toString/method-class-expression-static.js index 752c9d085..9a81f8f10 100644 --- a/test/built-ins/Function/prototype/toString/method-class-expression-static.js +++ b/test/built-ins/Function/prototype/toString/method-class-expression-static.js @@ -7,15 +7,9 @@ description: Function.prototype.toString on a method (class; static) ---*/ let x = "h"; -let f = class { - static /* before */ f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */ -}.f; -let g = class { - static /* before */ [ /* a */ "g" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ -}.g; -let h = class { - static /* before */ [ /* a */ x /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ -}.h; +let f = class { static /* before */f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ }.f; +let g = class { static /* before */[ /* a */ "g" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }.g; +let h = class { static /* before */[ /* a */ x /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }.h; assert.sameValue(f.toString(), "f /* a */ ( /* b */ ) /* c */ { /* d */ }"); assert.sameValue(g.toString(), "[ /* a */ \"g\" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }"); diff --git a/test/built-ins/Function/prototype/toString/method-class-expression.js b/test/built-ins/Function/prototype/toString/method-class-expression.js index a77b6b163..cdfe9643e 100644 --- a/test/built-ins/Function/prototype/toString/method-class-expression.js +++ b/test/built-ins/Function/prototype/toString/method-class-expression.js @@ -7,15 +7,9 @@ description: Function.prototype.toString on a method (class) ---*/ let x = "h"; -let f = class { /* before */ - f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */ -}.prototype.f; -let g = class { /* before */ - [ /* a */ "g" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ -}.prototype.g; -let h = class { /* before */ - [ /* a */ x /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ -}.prototype.h; +let f = class { /* before */f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ }.prototype.f; +let g = class { /* before */[ /* a */ "g" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }.prototype.g; +let h = class { /* before */[ /* a */ x /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }.prototype.h; assert.sameValue(f.toString(), "f /* a */ ( /* b */ ) /* c */ { /* d */ }"); assert.sameValue(g.toString(), "[ /* a */ \"g\" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }"); diff --git a/test/built-ins/Function/prototype/toString/method-class-statement-static.js b/test/built-ins/Function/prototype/toString/method-class-statement-static.js index 5bb809870..f8e9817a8 100644 --- a/test/built-ins/Function/prototype/toString/method-class-statement-static.js +++ b/test/built-ins/Function/prototype/toString/method-class-statement-static.js @@ -7,15 +7,9 @@ description: Function.prototype.toString on a method (class; static) ---*/ let x = "h"; -class F { - static /* before */ f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */ -} -class G { - static /* before */ [ /* a */ "g" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ -} -class H { - static /* before */ [ /* a */ x /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ -} +class F { static /* before */f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ } +class G { static /* before */[ /* a */ "g" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ } +class H { static /* before */[ /* a */ x /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ } let f = F.f; let g = G.g; diff --git a/test/built-ins/Function/prototype/toString/method-class-statement.js b/test/built-ins/Function/prototype/toString/method-class-statement.js index 63f7e3871..3ee83d514 100644 --- a/test/built-ins/Function/prototype/toString/method-class-statement.js +++ b/test/built-ins/Function/prototype/toString/method-class-statement.js @@ -7,15 +7,9 @@ description: Function.prototype.toString on a method (class) ---*/ let x = "h"; -class F { /* before */ - f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */ -} -class G { /* before */ - [ /* a */ "g" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ -} -class H { /* before */ - [ /* a */ x /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ -} +class F { /* before */f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ } +class G { /* before */[ /* a */ "g" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ } +class H { /* before */[ /* a */ x /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ } let f = F.prototype.f; let g = G.prototype.g; diff --git a/test/built-ins/Function/prototype/toString/method-computed-property-name.js b/test/built-ins/Function/prototype/toString/method-computed-property-name.js index af4d893be..dcf692d23 100644 --- a/test/built-ins/Function/prototype/toString/method-computed-property-name.js +++ b/test/built-ins/Function/prototype/toString/method-computed-property-name.js @@ -6,14 +6,8 @@ esid: sec-runtime-semantics-definemethod description: Function.prototype.toString on a method (object) ---*/ -let f = { /* before */ - [ /* a */ "f" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ -}.f; -let g = { - [{ - a() {} - }.a]() {} -}["a(){}"]; +let f = { /* before */[ /* a */ "f" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }.f; +let g = { [ { a(){} }.a ](){ } }["a(){}"]; assert.sameValue(f.toString(), "[ /* a */ \"f\" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }"); assert.sameValue("" + g, "[ { a(){} }.a ](){ }"); diff --git a/test/built-ins/Function/prototype/toString/method-object.js b/test/built-ins/Function/prototype/toString/method-object.js index 0e1567873..6930964ed 100644 --- a/test/built-ins/Function/prototype/toString/method-object.js +++ b/test/built-ins/Function/prototype/toString/method-object.js @@ -6,8 +6,6 @@ esid: sec-runtime-semantics-definemethod description: Function.prototype.toString on a method (object) ---*/ -let f = { /* before */ - f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */ -}.f; +let f = { /* before */f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ }.f; assert.sameValue(f.toString(), "f /* a */ ( /* b */ ) /* c */ { /* d */ }"); diff --git a/test/built-ins/Function/prototype/toString/setter-class-expression-static.js b/test/built-ins/Function/prototype/toString/setter-class-expression-static.js index f276c8657..ab0b1ede4 100644 --- a/test/built-ins/Function/prototype/toString/setter-class-expression-static.js +++ b/test/built-ins/Function/prototype/toString/setter-class-expression-static.js @@ -7,15 +7,9 @@ description: Function.prototype.toString on a setter (class; static) ---*/ let x = "h"; -let f = Object.getOwnPropertyDescriptor(class { - static /* before */ set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ } /* after */ -}, "f").set; -let g = Object.getOwnPropertyDescriptor(class { - static /* before */ set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */ -}, "g").set; -let h = Object.getOwnPropertyDescriptor(class { - static /* before */ set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */ -}, "h").set; +let f = Object.getOwnPropertyDescriptor(class { static /* before */set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ }/* after */ }, "f").set; +let g = Object.getOwnPropertyDescriptor(class { static /* before */set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ }, "g").set; +let h = Object.getOwnPropertyDescriptor(class { static /* before */set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ }, "h").set; assert.sameValue(f.toString(), "set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ }"); assert.sameValue(g.toString(), "set /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }"); diff --git a/test/built-ins/Function/prototype/toString/setter-class-expression.js b/test/built-ins/Function/prototype/toString/setter-class-expression.js index 954d6d52f..b34b4128e 100644 --- a/test/built-ins/Function/prototype/toString/setter-class-expression.js +++ b/test/built-ins/Function/prototype/toString/setter-class-expression.js @@ -7,15 +7,9 @@ description: Function.prototype.toString on a setter (class) ---*/ let x = "h"; -let f = Object.getOwnPropertyDescriptor(class { /* before */ - set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ } /* after */ -}.prototype, "f").set; -let g = Object.getOwnPropertyDescriptor(class { /* before */ - set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */ -}.prototype, "g").set; -let h = Object.getOwnPropertyDescriptor(class { /* before */ - set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */ -}.prototype, "h").set; +let f = Object.getOwnPropertyDescriptor(class { /* before */set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ }/* after */ }.prototype, "f").set; +let g = Object.getOwnPropertyDescriptor(class { /* before */set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ }.prototype, "g").set; +let h = Object.getOwnPropertyDescriptor(class { /* before */set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ }.prototype, "h").set; assert.sameValue(f.toString(), "set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ }"); assert.sameValue(g.toString(), "set /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }"); diff --git a/test/built-ins/Function/prototype/toString/setter-class-statement-static.js b/test/built-ins/Function/prototype/toString/setter-class-statement-static.js index dec3c2471..7a5a37de0 100644 --- a/test/built-ins/Function/prototype/toString/setter-class-statement-static.js +++ b/test/built-ins/Function/prototype/toString/setter-class-statement-static.js @@ -7,15 +7,9 @@ description: Function.prototype.toString on a setter (class; static) ---*/ let x = "h"; -class F { - static /* before */ set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ } /* after */ -} -class G { - static /* before */ set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */ -} -class H { - static /* before */ set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */ -} +class F { static /* before */set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ }/* after */ } +class G { static /* before */set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ } +class H { static /* before */set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ } let f = Object.getOwnPropertyDescriptor(F, "f").set; let g = Object.getOwnPropertyDescriptor(G, "g").set; diff --git a/test/built-ins/Function/prototype/toString/setter-class-statement.js b/test/built-ins/Function/prototype/toString/setter-class-statement.js index 4534d8aa1..7c0c2b3e0 100644 --- a/test/built-ins/Function/prototype/toString/setter-class-statement.js +++ b/test/built-ins/Function/prototype/toString/setter-class-statement.js @@ -7,15 +7,9 @@ description: Function.prototype.toString on a setter (class) ---*/ let x = "h"; -class F { /* before */ - set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ } /* after */ -} -class G { /* before */ - set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */ -} -class H { /* before */ - set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */ -} +class F { /* before */set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ }/* after */ } +class G { /* before */set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ } +class H { /* before */set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ } let f = Object.getOwnPropertyDescriptor(F.prototype, "f").set; let g = Object.getOwnPropertyDescriptor(G.prototype, "g").set; diff --git a/test/built-ins/Function/prototype/toString/setter-object.js b/test/built-ins/Function/prototype/toString/setter-object.js index 0e207d25c..20adbe3e0 100644 --- a/test/built-ins/Function/prototype/toString/setter-object.js +++ b/test/built-ins/Function/prototype/toString/setter-object.js @@ -7,15 +7,9 @@ description: Function.prototype.toString on a setter (object) ---*/ let x = "h"; -let f = Object.getOwnPropertyDescriptor({ /* before */ - set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ } /* after */ -}, "f").set; -let g = Object.getOwnPropertyDescriptor({ /* before */ - set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */ -}, "g").set; -let h = Object.getOwnPropertyDescriptor({ /* before */ - set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */ -}, "h").set; +let f = Object.getOwnPropertyDescriptor({ /* before */set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ }/* after */ }, "f").set; +let g = Object.getOwnPropertyDescriptor({ /* before */set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ }, "g").set; +let h = Object.getOwnPropertyDescriptor({ /* before */set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ }, "h").set; assert.sameValue(f.toString(), "set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ }"); assert.sameValue(g.toString(), "set /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }"); diff --git a/test/built-ins/Function/prototype/toString/unicode.js b/test/built-ins/Function/prototype/toString/unicode.js index a46303ef9..fa176fac2 100644 --- a/test/built-ins/Function/prototype/toString/unicode.js +++ b/test/built-ins/Function/prototype/toString/unicode.js @@ -9,13 +9,6 @@ info: | any potential Unicode escape sequence substitution in identifiers ---*/ -function\ u0061(\u { - 62 -}, \u0063) {\ - u0062 = \u { - 00063 - }; - return b; -} +function \u0061(\u{62}, \u0063) { \u0062 = \u{00063}; return b; } assert.sameValue(a.toString(), "function \\u0061(\\u{62}, \\u0063) { \\u0062 = \\u{00063}; return b; }"); |