diff options
Diffstat (limited to 'test/built-ins/Function/prototype')
234 files changed, 733 insertions, 1123 deletions
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; }"); |