diff --git a/test/built-ins/TypedArray/from/mapfn-is-not-callable.js b/test/built-ins/TypedArray/from/mapfn-is-not-callable.js index 1de02ee3fd8bb8ba8a5965f0430ab94abd1810c3..8bd0fd507230231f3a1066fd86c7fef3faa2ca97 100644 --- a/test/built-ins/TypedArray/from/mapfn-is-not-callable.js +++ b/test/built-ins/TypedArray/from/mapfn-is-not-callable.js @@ -46,7 +46,7 @@ assert.throws(TypeError, function() { TypedArray.from(arrayLike, true); }, "mapfn is a boolean"); -var s = Symbol("1") +var s = Symbol("1"); assert.throws(TypeError, function() { TypedArray.from(arrayLike, s); }, "mapfn is a symbol"); diff --git a/test/built-ins/TypedArray/prototype/byteOffset/return-byteoffset.js b/test/built-ins/TypedArray/prototype/byteOffset/return-byteoffset.js index 51570aa23a08cda1960ee348860a2e89403e987b..b1897f10e6f6af19a31abe0c2df25ff04f798eeb 100644 --- a/test/built-ins/TypedArray/prototype/byteOffset/return-byteoffset.js +++ b/test/built-ins/TypedArray/prototype/byteOffset/return-byteoffset.js @@ -24,7 +24,7 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(ta2.byteOffset, offset, "TA(buffer, offset)"); var buffer2 = new ArrayBuffer(8 * TA.BYTES_PER_ELEMENT); - var sample = new TA(buffer2, offset) + var sample = new TA(buffer2, offset); var ta3 = new TA(sample); assert.sameValue(ta3.byteOffset, 0, "TA(typedArray)"); }); diff --git a/test/built-ins/TypedArray/prototype/every/values-are-not-cached.js b/test/built-ins/TypedArray/prototype/every/values-are-not-cached.js index b62d74e4cd185e0423fed2057f1375f4576466ab..0df67e6103faf0267c9144fe791e6142d83496ef 100644 --- a/test/built-ins/TypedArray/prototype/every/values-are-not-cached.js +++ b/test/built-ins/TypedArray/prototype/every/values-are-not-cached.js @@ -27,7 +27,6 @@ includes: [testTypedArray.js] testWithTypedArrayConstructors(function(TA) { var sample = new TA([42, 43, 44]); - var calls = 0; sample.every(function(v, i) { if (i < sample.length - 1) { diff --git a/test/built-ins/TypedArray/prototype/fill/fill-values-symbol-throws.js b/test/built-ins/TypedArray/prototype/fill/fill-values-symbol-throws.js index d39d6221bed86cde8b4a9722770d13d2f89007b2..545c7e18105f249efe7096976992d704e27fe703 100644 --- a/test/built-ins/TypedArray/prototype/fill/fill-values-symbol-throws.js +++ b/test/built-ins/TypedArray/prototype/fill/fill-values-symbol-throws.js @@ -44,5 +44,5 @@ testWithTypedArrayConstructors(function(TA) { assert.throws(TypeError, function() { sample.fill(s); - }) + }); }); diff --git a/test/built-ins/TypedArray/prototype/find/return-undefined-if-predicate-returns-false-value.js b/test/built-ins/TypedArray/prototype/find/return-undefined-if-predicate-returns-false-value.js index a9bc612c09389fd707492ba5215b24d48a80f335..9b049260217cf6b58671b5460dcf97d1d8dbe97a 100644 --- a/test/built-ins/TypedArray/prototype/find/return-undefined-if-predicate-returns-false-value.js +++ b/test/built-ins/TypedArray/prototype/find/return-undefined-if-predicate-returns-false-value.js @@ -33,7 +33,7 @@ testWithTypedArrayConstructors(function(TA) { var sample = new TA(3); var called = 0; - var result = sample.find(function(val) { + var result = sample.find(function() { called++; return false; }); @@ -41,21 +41,21 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(called, 3, "predicate was called three times"); assert.sameValue(result, undefined); - result = sample.find(function(val) { return ""; }); + result = sample.find(function() { return ""; }); assert.sameValue(result, undefined, "ToBoolean(empty string)"); - result = sample.find(function(val) { return undefined; }); + result = sample.find(function() { return undefined; }); assert.sameValue(result, undefined, "ToBoolean(undefined)"); - result = sample.find(function(val) { return null; }); + result = sample.find(function() { return null; }); assert.sameValue(result, undefined, "ToBoolean(null)"); - result = sample.find(function(val) { return 0; }); + result = sample.find(function() { return 0; }); assert.sameValue(result, undefined, "ToBoolean(0)"); - result = sample.find(function(val) { return -0; }); + result = sample.find(function() { return -0; }); assert.sameValue(result, undefined, "ToBoolean(-0)"); - result = sample.find(function(val) { return NaN; }); + result = sample.find(function() { return NaN; }); assert.sameValue(result, undefined, "ToBoolean(NaN)"); }); diff --git a/test/built-ins/TypedArray/prototype/findIndex/return-negative-one-if-predicate-returns-false-value.js b/test/built-ins/TypedArray/prototype/findIndex/return-negative-one-if-predicate-returns-false-value.js index 400d05721b9c7cb8da014527010f56c923230dc5..09729e234dfd6ada2218d95d9e565358f72f62b6 100644 --- a/test/built-ins/TypedArray/prototype/findIndex/return-negative-one-if-predicate-returns-false-value.js +++ b/test/built-ins/TypedArray/prototype/findIndex/return-negative-one-if-predicate-returns-false-value.js @@ -30,7 +30,7 @@ testWithTypedArrayConstructors(function(TA) { var sample = new TA([1, 2, 3]); var called = 0; - var result = sample.findIndex(function(val) { + var result = sample.findIndex(function() { called++; return false; }); @@ -38,21 +38,21 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(called, 3, "predicate was called three times"); assert.sameValue(result, -1, "result is -1 when predicate returns are false"); - result = sample.findIndex(function(val) { return ""; }); + result = sample.findIndex(function() { return ""; }); assert.sameValue(result, -1, "ToBoolean(string)"); - result = sample.findIndex(function(val) { return undefined; }); + result = sample.findIndex(function() { return undefined; }); assert.sameValue(result, -1, "ToBoolean(undefined)"); - result = sample.findIndex(function(val) { return null; }); + result = sample.findIndex(function() { return null; }); assert.sameValue(result, -1, "ToBoolean(null)"); - result = sample.findIndex(function(val) { return 0; }); + result = sample.findIndex(function() { return 0; }); assert.sameValue(result, -1, "ToBoolean(0)"); - result = sample.findIndex(function(val) { return -0; }); + result = sample.findIndex(function() { return -0; }); assert.sameValue(result, -1, "ToBoolean(-0)"); - result = sample.findIndex(function(val) { return NaN; }); + result = sample.findIndex(function() { return NaN; }); assert.sameValue(result, -1, "ToBoolean(NaN)"); }); diff --git a/test/built-ins/TypedArray/prototype/forEach/callbackfn-not-called-on-empty.js b/test/built-ins/TypedArray/prototype/forEach/callbackfn-not-called-on-empty.js index 2b07c8c7a7ffa3603e125d6f6fdfe2610e71eeb5..69a11334a9111f685d09c0c7657d1a3c093982b6 100644 --- a/test/built-ins/TypedArray/prototype/forEach/callbackfn-not-called-on-empty.js +++ b/test/built-ins/TypedArray/prototype/forEach/callbackfn-not-called-on-empty.js @@ -27,7 +27,7 @@ includes: [testTypedArray.js] testWithTypedArrayConstructors(function(TA) { var called = 0; - var result1 = new TA().forEach(function() { + new TA().forEach(function() { called++; }); diff --git a/test/built-ins/TypedArray/prototype/indexOf/return-abrupt-tointeger-fromindex-symbol.js b/test/built-ins/TypedArray/prototype/indexOf/return-abrupt-tointeger-fromindex-symbol.js index a12260b218e54b5b620ffd9e786bf8cc559c0ec1..491bacb72b0647fa57ff997587bfbf5cde6a57bb 100644 --- a/test/built-ins/TypedArray/prototype/indexOf/return-abrupt-tointeger-fromindex-symbol.js +++ b/test/built-ins/TypedArray/prototype/indexOf/return-abrupt-tointeger-fromindex-symbol.js @@ -28,5 +28,5 @@ testWithTypedArrayConstructors(function(TA) { assert.throws(TypeError, function() { sample.indexOf(7, fromIndex); - }) + }); }); diff --git a/test/built-ins/TypedArray/prototype/indexOf/return-abrupt-tointeger-fromindex.js b/test/built-ins/TypedArray/prototype/indexOf/return-abrupt-tointeger-fromindex.js index d264901533edc6c57228f39d3423afd2b0256444..48b6f471160281e0a9119647c4931da5e0b56059 100644 --- a/test/built-ins/TypedArray/prototype/indexOf/return-abrupt-tointeger-fromindex.js +++ b/test/built-ins/TypedArray/prototype/indexOf/return-abrupt-tointeger-fromindex.js @@ -31,5 +31,5 @@ testWithTypedArrayConstructors(function(TA) { assert.throws(Test262Error, function() { sample.indexOf(7, fromIndex); - }) + }); }); diff --git a/test/built-ins/TypedArray/prototype/lastIndexOf/return-abrupt-tointeger-fromindex-symbol.js b/test/built-ins/TypedArray/prototype/lastIndexOf/return-abrupt-tointeger-fromindex-symbol.js index 96c5979d25513d7a7c512f6169901ca996722673..e3816c0bdfc84591f4d48ded8d7d256c57868805 100644 --- a/test/built-ins/TypedArray/prototype/lastIndexOf/return-abrupt-tointeger-fromindex-symbol.js +++ b/test/built-ins/TypedArray/prototype/lastIndexOf/return-abrupt-tointeger-fromindex-symbol.js @@ -28,5 +28,5 @@ testWithTypedArrayConstructors(function(TA) { assert.throws(TypeError, function() { sample.lastIndexOf(7, fromIndex); - }) + }); }); diff --git a/test/built-ins/TypedArray/prototype/lastIndexOf/return-abrupt-tointeger-fromindex.js b/test/built-ins/TypedArray/prototype/lastIndexOf/return-abrupt-tointeger-fromindex.js index 85ebef5d70bc179e222795c8ca31f08cb6a5e9ec..8b29ac97148f2f67389692c4864fa20e96f728e3 100644 --- a/test/built-ins/TypedArray/prototype/lastIndexOf/return-abrupt-tointeger-fromindex.js +++ b/test/built-ins/TypedArray/prototype/lastIndexOf/return-abrupt-tointeger-fromindex.js @@ -31,5 +31,5 @@ testWithTypedArrayConstructors(function(TA) { assert.throws(Test262Error, function() { sample.lastIndexOf(7, fromIndex); - }) + }); }); diff --git a/test/built-ins/TypedArray/prototype/map/callbackfn-return-does-not-copy-non-integer-properties.js b/test/built-ins/TypedArray/prototype/map/callbackfn-return-does-not-copy-non-integer-properties.js index 4a60410b001bea12338065ab3414145686fc500a..4b48976542c797e0086854e647811d27851cd9ad 100644 --- a/test/built-ins/TypedArray/prototype/map/callbackfn-return-does-not-copy-non-integer-properties.js +++ b/test/built-ins/TypedArray/prototype/map/callbackfn-return-does-not-copy-non-integer-properties.js @@ -22,7 +22,7 @@ testWithTypedArrayConstructors(function(TA) { var bar = Symbol("1"); sample.foo = 42; - sample[bar] + sample[bar] = 1; var result = sample.map(function() { return 0; diff --git a/test/built-ins/TypedArray/prototype/some/returns-true-if-any-cb-returns-true.js b/test/built-ins/TypedArray/prototype/some/returns-true-if-any-cb-returns-true.js index 1aacdb1bd863c2a7561e3f8bdb763171e5986a4a..4dd75f711dc4ba9bc65a6403056c1be3b6a1653e 100644 --- a/test/built-ins/TypedArray/prototype/some/returns-true-if-any-cb-returns-true.js +++ b/test/built-ins/TypedArray/prototype/some/returns-true-if-any-cb-returns-true.js @@ -29,9 +29,8 @@ features: [Symbol] var s = Symbol("1"); testWithTypedArrayConstructors(function(TA) { - var called = 0; var sample = new TA(42); - var values = [ + [ true, 1, "test262", diff --git a/test/built-ins/TypedArray/prototype/some/values-are-not-cached.js b/test/built-ins/TypedArray/prototype/some/values-are-not-cached.js index 7f775b54901acf5470df81dfc2656b9a084cba2f..3cc2a2252a7415aa85ab012bee9447a9264faec6 100644 --- a/test/built-ins/TypedArray/prototype/some/values-are-not-cached.js +++ b/test/built-ins/TypedArray/prototype/some/values-are-not-cached.js @@ -26,7 +26,6 @@ includes: [testTypedArray.js] testWithTypedArrayConstructors(function(TA) { var sample = new TA([42, 43, 44]); - var calls = 0; sample.some(function(v, i) { if (i < sample.length - 1) { diff --git a/test/built-ins/TypedArray/prototype/subarray/detached-buffer.js b/test/built-ins/TypedArray/prototype/subarray/detached-buffer.js index 368ffa2c33c3134d8090c993ffa90c576bf3451a..97a52fc8b5c749bcc9c30fe7f7c0b81ccf88c661 100644 --- a/test/built-ins/TypedArray/prototype/subarray/detached-buffer.js +++ b/test/built-ins/TypedArray/prototype/subarray/detached-buffer.js @@ -47,7 +47,7 @@ var o2 = { end = true; return 2; } -} +}; testWithTypedArrayConstructors(function(TA) { var sample = new TA(2); diff --git a/test/built-ins/TypedArray/prototype/subarray/speciesctor-get-species-custom-ctor-invocation.js b/test/built-ins/TypedArray/prototype/subarray/speciesctor-get-species-custom-ctor-invocation.js index 7613f806fbf6b0e381459d0d51c73feb84a1340c..278ca60b4e578e2a0bf5dfd2035253b17b9ce54a 100644 --- a/test/built-ins/TypedArray/prototype/subarray/speciesctor-get-species-custom-ctor-invocation.js +++ b/test/built-ins/TypedArray/prototype/subarray/speciesctor-get-species-custom-ctor-invocation.js @@ -37,7 +37,6 @@ features: [Symbol.species] testWithTypedArrayConstructors(function(TA) { var sample = new TA([40, 41, 42]); - var calls = 0; var expectedOffset = TA.BYTES_PER_ELEMENT; var result, ctorThis; @@ -46,7 +45,7 @@ testWithTypedArrayConstructors(function(TA) { result = arguments; ctorThis = this; return new TA(buffer, offset, length); - };; + }; sample.subarray(1); diff --git a/test/built-ins/TypedArray/prototype/subarray/speciesctor-get-species-custom-ctor.js b/test/built-ins/TypedArray/prototype/subarray/speciesctor-get-species-custom-ctor.js index 604cd07c19eb3ae475df2359018db0835f75b84f..207991bf2b5466991a35be6c6f6ec95632be1901 100644 --- a/test/built-ins/TypedArray/prototype/subarray/speciesctor-get-species-custom-ctor.js +++ b/test/built-ins/TypedArray/prototype/subarray/speciesctor-get-species-custom-ctor.js @@ -44,7 +44,7 @@ testWithTypedArrayConstructors(function(TA) { sample.constructor[Symbol.species] = function(buffer, offset, length) { calls++; return new TA(buffer, offset, length); - };; + }; result = sample.subarray(1); diff --git a/test/built-ins/TypedArrays/buffer-arg-length-access-throws.js b/test/built-ins/TypedArrays/buffer-arg-length-access-throws.js index 843a5cd173a39dcfdad7f1a12a26c9d01be6a413..5c4550e0664f0eec5b4bdda6bba70356e1054dd6 100644 --- a/test/built-ins/TypedArrays/buffer-arg-length-access-throws.js +++ b/test/built-ins/TypedArrays/buffer-arg-length-access-throws.js @@ -23,7 +23,7 @@ var length = { valueOf() { throw new Test262Error(); } -} +}; testWithTypedArrayConstructors(function(TA) { assert.throws(Test262Error, function() { diff --git a/test/built-ins/TypedArrays/from/mapfn-is-not-callable.js b/test/built-ins/TypedArrays/from/mapfn-is-not-callable.js index 3816ec3d05e86007e953edb6eee3bddb0ad7cf3c..de2171edc71fe1c899911f04dfcbacb9af48dfe6 100644 --- a/test/built-ins/TypedArrays/from/mapfn-is-not-callable.js +++ b/test/built-ins/TypedArrays/from/mapfn-is-not-callable.js @@ -47,7 +47,7 @@ testWithTypedArrayConstructors(function(TA) { TA.from(arrayLike, true); }, "mapfn is a boolean"); - var s = Symbol("1") + var s = Symbol("1"); assert.throws(TypeError, function() { TA.from(arrayLike, s); }, "mapfn is a symbol"); diff --git a/test/built-ins/TypedArrays/from/mapfn-this-with-thisarg.js b/test/built-ins/TypedArrays/from/mapfn-this-with-thisarg.js index 0e169de8ef1d9a52b68ea3b0de128545ea68774e..fba15cc636577caa3276089a9b6165e20ead40ec 100644 --- a/test/built-ins/TypedArrays/from/mapfn-this-with-thisarg.js +++ b/test/built-ins/TypedArrays/from/mapfn-this-with-thisarg.js @@ -23,7 +23,7 @@ var thisArg = {}; testWithTypedArrayConstructors(function(TA) { var results = []; - var mapfn = function(kValue, k) { + var mapfn = function() { results.push(this); }; diff --git a/test/built-ins/TypedArrays/from/mapfn-this-without-thisarg-non-strict.js b/test/built-ins/TypedArrays/from/mapfn-this-without-thisarg-non-strict.js index 455d9b4465da2fca8c444458cf8899b6398cd679..3be1326c2f18875ffe03e000fb5704b3dc389188 100644 --- a/test/built-ins/TypedArrays/from/mapfn-this-without-thisarg-non-strict.js +++ b/test/built-ins/TypedArrays/from/mapfn-this-without-thisarg-non-strict.js @@ -24,7 +24,7 @@ var global = this; testWithTypedArrayConstructors(function(TA) { var results = []; - var mapfn = function(kValue, k) { + var mapfn = function() { results.push(this); }; diff --git a/test/built-ins/TypedArrays/from/mapfn-this-without-thisarg-strict.js b/test/built-ins/TypedArrays/from/mapfn-this-without-thisarg-strict.js index 26c8018601ef48ff983d53cc305e7d4f0aa7313b..c440279591c6dc620eb124b902bb2202df9db3bc 100644 --- a/test/built-ins/TypedArrays/from/mapfn-this-without-thisarg-strict.js +++ b/test/built-ins/TypedArrays/from/mapfn-this-without-thisarg-strict.js @@ -23,7 +23,7 @@ var source = [42, 43]; testWithTypedArrayConstructors(function(TA) { var results = []; - var mapfn = function(kValue, k) { + var mapfn = function() { results.push(this); }; diff --git a/test/built-ins/TypedArrays/from/new-instance-using-custom-ctor.js b/test/built-ins/TypedArrays/from/new-instance-using-custom-ctor.js index c4df9f2fb32fc8a53d75f6c88554092a186ef4ef..a060d7da27aec139f915ba4537c262709fdc8c1a 100644 --- a/test/built-ins/TypedArrays/from/new-instance-using-custom-ctor.js +++ b/test/built-ins/TypedArrays/from/new-instance-using-custom-ctor.js @@ -15,7 +15,7 @@ testWithTypedArrayConstructors(function(TA) { var ctor = function(len) { assert.sameValue(arguments.length, 1); called++; - return new TA(len) + return new TA(len); }; var result = TA.from.call(ctor, source); diff --git a/test/built-ins/TypedArrays/from/new-instance-with-mapfn.js b/test/built-ins/TypedArrays/from/new-instance-with-mapfn.js index 6cd785477666e09ee17561598e2562103fc8d0b8..a58356929459d18d8d91595dcf1c7bcfa62d964f 100644 --- a/test/built-ins/TypedArrays/from/new-instance-with-mapfn.js +++ b/test/built-ins/TypedArrays/from/new-instance-with-mapfn.js @@ -10,7 +10,6 @@ includes: [testTypedArray.js] var source = [42, 43, 42]; testWithTypedArrayConstructors(function(TA) { - var lastValue; var mapfn = function(kValue) { return kValue * 2; }; diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/detached-buffer.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/detached-buffer.js index 256c32f501fcfcd852a7cafe36c3a182d9cf9cd7..7459d6750b62cc26001ad3f6acd1abc594f822b4 100644 --- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/detached-buffer.js +++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/detached-buffer.js @@ -37,7 +37,7 @@ var obj = { valueOf: function() { throw new Test262Error(); } -} +}; testWithTypedArrayConstructors(function(TA) { var sample = new TA(42); diff --git a/test/built-ins/TypedArrays/internals/Set/detached-buffer-key-is-not-numeric-index.js b/test/built-ins/TypedArrays/internals/Set/detached-buffer-key-is-not-numeric-index.js index 2bf2547c66ebb0b5ba31fe0b78ba140a73688e47..72281dc3d5e2fba900a2b1b546198bff5086257d 100644 --- a/test/built-ins/TypedArrays/internals/Set/detached-buffer-key-is-not-numeric-index.js +++ b/test/built-ins/TypedArrays/internals/Set/detached-buffer-key-is-not-numeric-index.js @@ -22,5 +22,5 @@ testWithTypedArrayConstructors(function(TA) { $DETACHBUFFER(sample.buffer); assert.sameValue(Reflect.set(sample, "foo", "test262"), true); - assert.sameValue(sample["foo"], "test262"); + assert.sameValue(sample.foo, "test262"); }); diff --git a/test/built-ins/TypedArrays/length-arg-is-not-valid-buffer-size-throws-rangeerror.js b/test/built-ins/TypedArrays/length-arg-is-not-valid-buffer-size-throws-rangeerror.js index fb56100684971352adeb2b26729ec7c394940f9b..a9fe4cca581d2456f1fa667c7c2c66ac2f0a090e 100644 --- a/test/built-ins/TypedArrays/length-arg-is-not-valid-buffer-size-throws-rangeerror.js +++ b/test/built-ins/TypedArrays/length-arg-is-not-valid-buffer-size-throws-rangeerror.js @@ -49,5 +49,5 @@ var length = Math.pow(2, 53); testWithTypedArrayConstructors(function(TA) { assert.throws(RangeError, function() { new TA(length); - }) + }); }); diff --git a/test/built-ins/TypedArrays/object-arg-iterator-not-callable-throws.js b/test/built-ins/TypedArrays/object-arg-iterator-not-callable-throws.js index a500207070f231aa48d558c3fd40a9b1e02043bc..b7c6c74c69bdbdf5af1f3cb99ebbd5cf05bf5d3a 100644 --- a/test/built-ins/TypedArrays/object-arg-iterator-not-callable-throws.js +++ b/test/built-ins/TypedArrays/object-arg-iterator-not-callable-throws.js @@ -19,7 +19,7 @@ includes: [testTypedArray.js] features: [Symbol.iterator] ---*/ -var obj = function () {} +var obj = function () {}; testWithTypedArrayConstructors(function(TA) { obj[Symbol.iterator] = {}; diff --git a/test/built-ins/TypedArrays/object-arg-iterator-throws.js b/test/built-ins/TypedArrays/object-arg-iterator-throws.js index c04b75326212fcefe63c43e8e906290562eb0d72..efc3cb6d0f32a3a31f6e287902ebbacf1607d5b9 100644 --- a/test/built-ins/TypedArrays/object-arg-iterator-throws.js +++ b/test/built-ins/TypedArrays/object-arg-iterator-throws.js @@ -19,7 +19,7 @@ includes: [testTypedArray.js] features: [Symbol.iterator] ---*/ -var obj = function () {} +var obj = function () {}; Object.defineProperty(obj, Symbol.iterator, { get() { diff --git a/test/built-ins/TypedArrays/of/argument-is-symbol-throws.js b/test/built-ins/TypedArrays/of/argument-is-symbol-throws.js index d8a4fc6ff31296c19d243709459674058992364a..72fdb51f532f0f13c4e9633393bcb542e9ee80b0 100644 --- a/test/built-ins/TypedArrays/of/argument-is-symbol-throws.js +++ b/test/built-ins/TypedArrays/of/argument-is-symbol-throws.js @@ -18,6 +18,6 @@ var s = Symbol("1"); testWithTypedArrayConstructors(function(TA) { assert.throws(TypeError, function() { - var result = TA.of(s); + TA.of(s); }); }); diff --git a/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-access-throws.js b/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-access-throws.js index aaad50a4b40b6df18f1ec20cdf3437d0236a9090..fe6d628593e00902ff16ba073ffba187446f1df4 100644 --- a/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-access-throws.js +++ b/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-access-throws.js @@ -25,9 +25,8 @@ includes: [testTypedArray.js] ---*/ testWithTypedArrayConstructors(function(TA) { - var sample1 = Int8Array; - var sample2 = Int16Array; - var sample = new (TA === Int8Array ? sample2 : sample1); + var OtherCtor = TA === Int8Array ? Int16Array : Int8Array; + var sample = new OtherCtor(); Object.defineProperty(sample.buffer, "constructor", { get() { diff --git a/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-species-null.js b/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-species-null.js index 78e12443c904d6670642c8c588d3010ca93ff3a9..afe10ae31411393b52fb3a5a430683e43b8d8502 100644 --- a/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-species-null.js +++ b/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-species-null.js @@ -26,12 +26,10 @@ includes: [testTypedArray.js] features: [Symbol.species] ---*/ -var sample1 = new Int8Array(); -var sample2 = new Int16Array(); - testWithTypedArrayConstructors(function(TA) { - var sample = TA === Int8Array ? sample2 : sample1; - var ctor = {} + var OtherCtor = TA === Int8Array ? Int16Array : Int8Array; + var sample = new OtherCtor(); + var ctor = {}; sample.buffer.constructor = ctor; diff --git a/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-species-undefined.js b/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-species-undefined.js index 739375c361bf4f9d609257810efdac45b350b758..7c020c09e55ed55c70218784e771d07eeeb87bd1 100644 --- a/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-species-undefined.js +++ b/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-species-undefined.js @@ -26,12 +26,10 @@ includes: [testTypedArray.js] features: [Symbol.species] ---*/ -var sample1 = new Int8Array(); -var sample2 = new Int16Array(); - testWithTypedArrayConstructors(function(TA) { - var sample = TA === Int8Array ? sample2 : sample1; - var ctor = {} + var OtherCtor = TA === Int8Array ? Int16Array : Int8Array; + var sample = new OtherCtor(); + var ctor = {}; sample.buffer.constructor = ctor; diff --git a/test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-null.js b/test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-null.js index 85d3b2ef18b081802a01fc519241e68598ec2945..a004b7c14d1ed92557480c8e7a49a804c883a698 100644 --- a/test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-null.js +++ b/test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-null.js @@ -35,7 +35,7 @@ features: [Symbol.species] testWithTypedArrayConstructors(function(TA) { var sample = new TA(4); - var ctor = {} + var ctor = {}; sample.buffer.constructor = ctor; diff --git a/test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-undefined.js b/test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-undefined.js index a5c8edc687ab74788412f8bbfdddf32e67f4339b..c838939d593da548f93599ed0ca8069ffb8c0d83 100644 --- a/test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-undefined.js +++ b/test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-undefined.js @@ -35,7 +35,7 @@ features: [Symbol.species] testWithTypedArrayConstructors(function(TA) { var sample = new TA(4); - var ctor = {} + var ctor = {}; sample.buffer.constructor = ctor;