diff --git a/test/built-ins/ArrayBuffer/data-allocation-after-object-creation.js b/test/built-ins/ArrayBuffer/data-allocation-after-object-creation.js index 85cfd57a53..e53c92b1c5 100644 --- a/test/built-ins/ArrayBuffer/data-allocation-after-object-creation.js +++ b/test/built-ins/ArrayBuffer/data-allocation-after-object-creation.js @@ -23,9 +23,9 @@ info: | features: [Reflect.construct] ---*/ -function DummyError() { } +function DummyError() {} -var newTarget = function(){}.bind(null); +var newTarget = function() {}.bind(null); Object.defineProperty(newTarget, "prototype", { get: function() { throw new DummyError(); diff --git a/test/built-ins/ArrayBuffer/newtarget-prototype-is-not-object.js b/test/built-ins/ArrayBuffer/newtarget-prototype-is-not-object.js index a32cf9bd55..2e17f26bc2 100644 --- a/test/built-ins/ArrayBuffer/newtarget-prototype-is-not-object.js +++ b/test/built-ins/ArrayBuffer/newtarget-prototype-is-not-object.js @@ -22,7 +22,7 @@ info: | features: [Reflect.construct, Symbol] ---*/ -function newTarget() { } +function newTarget() {} newTarget.prototype = undefined; var arrayBuffer = Reflect.construct(ArrayBuffer, [1], newTarget); diff --git a/test/built-ins/ArrayBuffer/prototype-from-newtarget.js b/test/built-ins/ArrayBuffer/prototype-from-newtarget.js index 8044f622b2..0d6c097d7f 100644 --- a/test/built-ins/ArrayBuffer/prototype-from-newtarget.js +++ b/test/built-ins/ArrayBuffer/prototype-from-newtarget.js @@ -25,7 +25,7 @@ features: [Reflect.construct] var arrayBuffer = Reflect.construct(ArrayBuffer, [8], Object); assert.sameValue(Object.getPrototypeOf(arrayBuffer), Object.prototype, "NewTarget is built-in Object constructor"); -var newTarget = function(){}.bind(null); +var newTarget = function() {}.bind(null); Object.defineProperty(newTarget, "prototype", { get: function() { return Array.prototype; diff --git a/test/built-ins/ArrayBuffer/prototype/slice/end-default-if-undefined.js b/test/built-ins/ArrayBuffer/prototype/slice/end-default-if-undefined.js index 72534dccf1..383aaeb938 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/end-default-if-undefined.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/end-default-if-undefined.js @@ -17,6 +17,7 @@ info: | var arrayBuffer = new ArrayBuffer(8); -var start = 6, end = undefined; +var start = 6, + end = undefined; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 2); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/end-exceeds-length.js b/test/built-ins/ArrayBuffer/prototype/slice/end-exceeds-length.js index 10d47bf188..5138b910da 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/end-exceeds-length.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/end-exceeds-length.js @@ -16,14 +16,17 @@ info: | var arrayBuffer = new ArrayBuffer(8); -var start = 1, end = 12; +var start = 1, + end = 12; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 7, "slice(1, 12)"); -var start = 2, end = 0x100000000; +var start = 2, + end = 0x100000000; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 6, "slice(2, 0x100000000)"); -var start = 3, end = +Infinity; +var start = 3, + end = +Infinity; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 5, "slice(3, Infinity)"); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/negative-end.js b/test/built-ins/ArrayBuffer/prototype/slice/negative-end.js index c41245c864..bafdd8a4fc 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/negative-end.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/negative-end.js @@ -16,14 +16,17 @@ info: | var arrayBuffer = new ArrayBuffer(8); -var start = 2, end = -4; +var start = 2, + end = -4; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 2, "slice(2, -4)"); -var start = 2, end = -10; +var start = 2, + end = -10; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 0, "slice(2, -10)"); -var start = 2, end = -Infinity; +var start = 2, + end = -Infinity; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 0, "slice(2, -Infinity)"); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/negative-start.js b/test/built-ins/ArrayBuffer/prototype/slice/negative-start.js index 34781706e0..afc33ffff0 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/negative-start.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/negative-start.js @@ -16,14 +16,17 @@ info: | var arrayBuffer = new ArrayBuffer(8); -var start = -5, end = 6; +var start = -5, + end = 6; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 3, "slice(-5, 6)"); -var start = -12, end = 6; +var start = -12, + end = 6; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 6, "slice(-12, 6)"); -var start = -Infinity, end = 6; +var start = -Infinity, + end = 6; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 6, "slice(-Infinity, 6)"); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/nonconstructor.js b/test/built-ins/ArrayBuffer/prototype/slice/nonconstructor.js index 1a3406f850..83c2ba3191 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/nonconstructor.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/nonconstructor.js @@ -18,4 +18,6 @@ info: | assert.sameValue(Object.prototype.hasOwnProperty.call(ArrayBuffer.prototype.slice, "prototype"), false); var arrayBuffer = new ArrayBuffer(8); -assert.throws(TypeError, function() { new arrayBuffer.slice(); }); +assert.throws(TypeError, function() { + new arrayBuffer.slice(); +}); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/species-constructor-is-not-object.js b/test/built-ins/ArrayBuffer/prototype/slice/species-constructor-is-not-object.js index ce293de3f8..94cf973cec 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/species-constructor-is-not-object.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/species-constructor-is-not-object.js @@ -26,7 +26,9 @@ features: [Symbol] var arrayBuffer = new ArrayBuffer(8); -function callSlice() { arrayBuffer.slice(); } +function callSlice() { + arrayBuffer.slice(); +} arrayBuffer.constructor = null; assert.throws(TypeError, callSlice, "`constructor` value is null"); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/species-is-not-constructor.js b/test/built-ins/ArrayBuffer/prototype/slice/species-is-not-constructor.js index a2ae81988e..707a12acb0 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/species-is-not-constructor.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/species-is-not-constructor.js @@ -29,7 +29,9 @@ var speciesConstructor = {}; var arrayBuffer = new ArrayBuffer(8); arrayBuffer.constructor = speciesConstructor; -function callSlice() { arrayBuffer.slice(); } +function callSlice() { + arrayBuffer.slice(); +} speciesConstructor[Symbol.species] = {}; assert.throws(TypeError, callSlice, "`constructor[Symbol.species]` value is Object"); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/species-is-not-object.js b/test/built-ins/ArrayBuffer/prototype/slice/species-is-not-object.js index d358cb90b5..8a751cd224 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/species-is-not-object.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/species-is-not-object.js @@ -29,7 +29,9 @@ var speciesConstructor = {}; var arrayBuffer = new ArrayBuffer(8); arrayBuffer.constructor = speciesConstructor; -function callSlice() { arrayBuffer.slice(); } +function callSlice() { + arrayBuffer.slice(); +} speciesConstructor[Symbol.species] = true; assert.throws(TypeError, callSlice, "`constructor[Symbol.species]` value is Boolean"); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/start-default-if-undefined.js b/test/built-ins/ArrayBuffer/prototype/slice/start-default-if-undefined.js index 65ad471f9b..3594379341 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/start-default-if-undefined.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/start-default-if-undefined.js @@ -17,6 +17,7 @@ info: | var arrayBuffer = new ArrayBuffer(8); -var start = undefined, end = 6; +var start = undefined, + end = 6; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 6); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-end.js b/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-end.js index 2731261e09..af0ca352ad 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-end.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-end.js @@ -16,6 +16,7 @@ info: | var arrayBuffer = new ArrayBuffer(8); -var start = 5, end = 4; +var start = 5, + end = 4; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 0); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-length.js b/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-length.js index b8abf3b5d4..70e00c7414 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-length.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-length.js @@ -16,14 +16,17 @@ info: | var arrayBuffer = new ArrayBuffer(8); -var start = 10, end = 8; +var start = 10, + end = 8; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 0, "slice(10, 8)"); -var start = 0x100000000, end = 7; +var start = 0x100000000, + end = 7; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 0, "slice(0x100000000, 7)"); -var start = +Infinity, end = 6; +var start = +Infinity, + end = 6; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 0, "slice(+Infinity, 6)"); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-end.js b/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-end.js index 4beb7335ff..54e8ab1fa7 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-end.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-end.js @@ -17,10 +17,12 @@ info: | var arrayBuffer = new ArrayBuffer(8); -var start = 0, end = 4.5; +var start = 0, + end = 4.5; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 4, "slice(0, 4.5)"); -var start = 0, end = NaN; +var start = 0, + end = NaN; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 0, "slice(0, NaN)"); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-start.js b/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-start.js index c775d42315..3150213e6a 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-start.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-start.js @@ -17,10 +17,12 @@ info: | var arrayBuffer = new ArrayBuffer(8); -var start = 4.5, end = 8; +var start = 4.5, + end = 8; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 4, "slice(4.5, 8)"); -var start = NaN, end = 8; +var start = NaN, + end = 8; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 8, "slice(NaN, 8)");