From 8a78bb09a704163054f0425da197d5ea50493c7c Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Wed, 25 Apr 2018 11:33:53 -0400 Subject: [PATCH] Atomics: remove BigInt condition from existing tests. --- test/built-ins/Atomics/add/bad-range.js | 7 +------ test/built-ins/Atomics/add/nonshared-int-views.js | 7 +------ test/built-ins/Atomics/and/bad-range.js | 7 +------ test/built-ins/Atomics/and/nonshared-int-views.js | 7 +------ test/built-ins/Atomics/compareExchange/bad-range.js | 7 +------ .../Atomics/compareExchange/nonshared-int-views.js | 7 +------ test/built-ins/Atomics/exchange/bad-range.js | 7 +------ test/built-ins/Atomics/exchange/nonshared-int-views.js | 7 +------ test/built-ins/Atomics/load/bad-range.js | 7 +------ test/built-ins/Atomics/load/nonshared-int-views.js | 7 +------ test/built-ins/Atomics/or/bad-range.js | 7 +------ test/built-ins/Atomics/or/nonshared-int-views.js | 7 +------ test/built-ins/Atomics/store/bad-range.js | 7 +------ test/built-ins/Atomics/store/nonshared-int-views.js | 7 +------ test/built-ins/Atomics/sub/bad-range.js | 7 +------ test/built-ins/Atomics/sub/nonshared-int-views.js | 7 +------ test/built-ins/Atomics/wait/bad-range.js | 7 +------ test/built-ins/Atomics/wake/bad-range.js | 7 +------ test/built-ins/Atomics/wake/nonshared-int-views.js | 7 +------ test/built-ins/Atomics/xor/bad-range.js | 7 +------ test/built-ins/Atomics/xor/nonshared-int-views.js | 7 +------ 21 files changed, 21 insertions(+), 126 deletions(-) diff --git a/test/built-ins/Atomics/add/bad-range.js b/test/built-ins/Atomics/add/bad-range.js index 59efe923db..971a958806 100644 --- a/test/built-ins/Atomics/add/bad-range.js +++ b/test/built-ins/Atomics/add/bad-range.js @@ -6,17 +6,12 @@ esid: sec-atomics.add description: > Test range checking of Atomics.add on arrays that allow atomic operations includes: [testAtomics.js, testTypedArray.js] -features: [ArrayBuffer, arrow-function, Atomics, BigInt, DataView, for-of, let, SharedArrayBuffer, TypedArray] +features: [ArrayBuffer, arrow-function, Atomics, DataView, for-of, let, SharedArrayBuffer, TypedArray] ---*/ var buffer = new SharedArrayBuffer(8); var views = intArrayConstructors.slice(); -if (typeof BigInt !== "undefined") { - views.push(BigInt64Array); - views.push(BigUint64Array); -} - testWithTypedArrayConstructors(function(TA) { let view = new TA(buffer); testWithAtomicsOutOfBoundsIndices(function(IdxGen) { diff --git a/test/built-ins/Atomics/add/nonshared-int-views.js b/test/built-ins/Atomics/add/nonshared-int-views.js index 92b75d32e3..a7df43c696 100644 --- a/test/built-ins/Atomics/add/nonshared-int-views.js +++ b/test/built-ins/Atomics/add/nonshared-int-views.js @@ -6,17 +6,12 @@ esid: sec-atomics.add description: > Test Atomics.add on non-shared integer TypedArrays includes: [testTypedArray.js] -features: [ArrayBuffer, Atomics, BigInt, TypedArray] +features: [ArrayBuffer, Atomics, TypedArray] ---*/ var ab = new ArrayBuffer(16); var views = intArrayConstructors.slice(); -if (typeof BigInt !== "undefined") { - views.push(BigInt64Array); - views.push(BigUint64Array); -} - testWithTypedArrayConstructors(function(TA) { assert.throws(TypeError, (() => Atomics.add(new TA(ab), 0, 0))); }, views); diff --git a/test/built-ins/Atomics/and/bad-range.js b/test/built-ins/Atomics/and/bad-range.js index 19fc35235b..683a5a32b2 100644 --- a/test/built-ins/Atomics/and/bad-range.js +++ b/test/built-ins/Atomics/and/bad-range.js @@ -6,17 +6,12 @@ esid: sec-atomics.and description: > Test range checking of Atomics.and on arrays that allow atomic operations includes: [testAtomics.js, testTypedArray.js] -features: [ArrayBuffer, arrow-function, Atomics, BigInt, DataView, for-of, let, SharedArrayBuffer, TypedArray] +features: [ArrayBuffer, arrow-function, Atomics, DataView, for-of, let, SharedArrayBuffer, TypedArray] ---*/ var buffer = new SharedArrayBuffer(8); var views = intArrayConstructors.slice(); -if (typeof BigInt !== "undefined") { - views.push(BigInt64Array); - views.push(BigUint64Array); -} - testWithTypedArrayConstructors(function(TA) { let view = new TA(buffer); testWithAtomicsOutOfBoundsIndices(function(IdxGen) { diff --git a/test/built-ins/Atomics/and/nonshared-int-views.js b/test/built-ins/Atomics/and/nonshared-int-views.js index 0ac99ee718..1808f89565 100644 --- a/test/built-ins/Atomics/and/nonshared-int-views.js +++ b/test/built-ins/Atomics/and/nonshared-int-views.js @@ -6,17 +6,12 @@ esid: sec-atomics.and description: > Test Atomics.and on non-shared integer TypedArrays includes: [testTypedArray.js] -features: [ArrayBuffer, Atomics, BigInt, TypedArray] +features: [ArrayBuffer, Atomics, TypedArray] ---*/ var buffer = new ArrayBuffer(16); var views = intArrayConstructors.slice(); -if (typeof BigInt !== "undefined") { - views.push(BigInt64Array); - views.push(BigUint64Array); -} - testWithTypedArrayConstructors(function(TA) { assert.throws(TypeError, (() => Atomics.and(new TA(buffer), 0, 0))); }, views); diff --git a/test/built-ins/Atomics/compareExchange/bad-range.js b/test/built-ins/Atomics/compareExchange/bad-range.js index ea8ab1b31c..34407bb0cb 100644 --- a/test/built-ins/Atomics/compareExchange/bad-range.js +++ b/test/built-ins/Atomics/compareExchange/bad-range.js @@ -6,17 +6,12 @@ esid: sec-atomics.compareexchange description: > Test range checking of Atomics.compareExchange on arrays that allow atomic operations includes: [testAtomics.js, testTypedArray.js] -features: [ArrayBuffer, arrow-function, Atomics, BigInt, DataView, for-of, let, SharedArrayBuffer, TypedArray] +features: [ArrayBuffer, arrow-function, Atomics, DataView, for-of, let, SharedArrayBuffer, TypedArray] ---*/ var buffer = new SharedArrayBuffer(8); var views = intArrayConstructors.slice(); -if (typeof BigInt !== "undefined") { - views.push(BigInt64Array); - views.push(BigUint64Array); -} - testWithTypedArrayConstructors(function(TA) { let view = new TA(buffer); testWithAtomicsOutOfBoundsIndices(function(IdxGen) { diff --git a/test/built-ins/Atomics/compareExchange/nonshared-int-views.js b/test/built-ins/Atomics/compareExchange/nonshared-int-views.js index 2f196f896e..649359451b 100644 --- a/test/built-ins/Atomics/compareExchange/nonshared-int-views.js +++ b/test/built-ins/Atomics/compareExchange/nonshared-int-views.js @@ -6,17 +6,12 @@ esid: sec-atomics.compareexchange description: > Test Atomics.compareExchange on non-shared integer TypedArrays includes: [testTypedArray.js] -features: [ArrayBuffer, Atomics, BigInt, TypedArray] +features: [ArrayBuffer, Atomics, TypedArray] ---*/ var buffer = new ArrayBuffer(16); var views = intArrayConstructors.slice(); -if (typeof BigInt !== "undefined") { - views.push(BigInt64Array); - views.push(BigUint64Array); -} - testWithTypedArrayConstructors(function(TA) { assert.throws(TypeError, (() => Atomics.compareExchange(new TA(buffer), 0, 0, 0))); }, views); diff --git a/test/built-ins/Atomics/exchange/bad-range.js b/test/built-ins/Atomics/exchange/bad-range.js index ddc763ecd2..f1c929ddd0 100644 --- a/test/built-ins/Atomics/exchange/bad-range.js +++ b/test/built-ins/Atomics/exchange/bad-range.js @@ -6,17 +6,12 @@ esid: sec-atomics.exchange description: > Test range checking of Atomics.exchange on arrays that allow atomic operations includes: [testAtomics.js, testTypedArray.js] -features: [ArrayBuffer, arrow-function, Atomics, BigInt, DataView, for-of, let, SharedArrayBuffer, TypedArray] +features: [ArrayBuffer, arrow-function, Atomics, DataView, for-of, let, SharedArrayBuffer, TypedArray] ---*/ var buffer = new SharedArrayBuffer(8); var views = intArrayConstructors.slice(); -if (typeof BigInt !== "undefined") { - views.push(BigInt64Array); - views.push(BigUint64Array); -} - testWithTypedArrayConstructors(function(TA) { let view = new TA(buffer); testWithAtomicsOutOfBoundsIndices(function(IdxGen) { diff --git a/test/built-ins/Atomics/exchange/nonshared-int-views.js b/test/built-ins/Atomics/exchange/nonshared-int-views.js index 47a736fc9a..b5eda3754b 100644 --- a/test/built-ins/Atomics/exchange/nonshared-int-views.js +++ b/test/built-ins/Atomics/exchange/nonshared-int-views.js @@ -6,17 +6,12 @@ esid: sec-atomics.exchange description: > Test Atomics.exchange on non-shared integer TypedArrays includes: [testTypedArray.js] -features: [ArrayBuffer, Atomics, BigInt, TypedArray] +features: [ArrayBuffer, Atomics, TypedArray] ---*/ var buffer = new ArrayBuffer(16); var views = intArrayConstructors.slice(); -if (typeof BigInt !== "undefined") { - views.push(BigInt64Array); - views.push(BigUint64Array); -} - testWithTypedArrayConstructors(function(TA) { assert.throws(TypeError, (() => Atomics.exchange(new TA(buffer), 0, 0))); }, views); diff --git a/test/built-ins/Atomics/load/bad-range.js b/test/built-ins/Atomics/load/bad-range.js index c2a2cdcc21..32373693fa 100644 --- a/test/built-ins/Atomics/load/bad-range.js +++ b/test/built-ins/Atomics/load/bad-range.js @@ -6,17 +6,12 @@ esid: sec-atomics.load description: > Test range checking of Atomics.load on arrays that allow atomic operations includes: [testAtomics.js, testTypedArray.js] -features: [ArrayBuffer, arrow-function, Atomics, BigInt, DataView, for-of, let, SharedArrayBuffer, TypedArray] +features: [ArrayBuffer, arrow-function, Atomics, DataView, for-of, let, SharedArrayBuffer, TypedArray] ---*/ var buffer = new SharedArrayBuffer(8); var views = intArrayConstructors.slice(); -if (typeof BigInt !== "undefined") { - views.push(BigInt64Array); - views.push(BigUint64Array); -} - testWithTypedArrayConstructors(function(TA) { let view = new TA(buffer); testWithAtomicsOutOfBoundsIndices(function(IdxGen) { diff --git a/test/built-ins/Atomics/load/nonshared-int-views.js b/test/built-ins/Atomics/load/nonshared-int-views.js index eb91478495..54519f2101 100644 --- a/test/built-ins/Atomics/load/nonshared-int-views.js +++ b/test/built-ins/Atomics/load/nonshared-int-views.js @@ -6,18 +6,13 @@ esid: sec-atomics.load description: > Test Atomics.load on non-shared integer TypedArrays includes: [testTypedArray.js] -features: [ArrayBuffer, Atomics, BigInt, TypedArray] +features: [ArrayBuffer, Atomics, TypedArray] ---*/ var ab = new ArrayBuffer(16); var views = intArrayConstructors.slice(); -if (typeof BigInt !== "undefined") { - views.push(BigInt64Array); - views.push(BigUint64Array); -} - testWithTypedArrayConstructors(function(TA) { var view = new TA(ab); diff --git a/test/built-ins/Atomics/or/bad-range.js b/test/built-ins/Atomics/or/bad-range.js index 42ee5a30c3..e1b9f68b3c 100644 --- a/test/built-ins/Atomics/or/bad-range.js +++ b/test/built-ins/Atomics/or/bad-range.js @@ -6,17 +6,12 @@ esid: sec-atomics.or description: > Test range checking of Atomics.or on arrays that allow atomic operations includes: [testAtomics.js, testTypedArray.js] -features: [ArrayBuffer, arrow-function, Atomics, BigInt, DataView, for-of, let, SharedArrayBuffer, TypedArray] +features: [ArrayBuffer, arrow-function, Atomics, DataView, for-of, let, SharedArrayBuffer, TypedArray] ---*/ var buffer = new SharedArrayBuffer(8); var views = intArrayConstructors.slice(); -if (typeof BigInt !== "undefined") { - views.push(BigInt64Array); - views.push(BigUint64Array); -} - testWithTypedArrayConstructors(function(TA) { let view = new TA(buffer); testWithAtomicsOutOfBoundsIndices(function(IdxGen) { diff --git a/test/built-ins/Atomics/or/nonshared-int-views.js b/test/built-ins/Atomics/or/nonshared-int-views.js index b88c793133..09517d4c84 100644 --- a/test/built-ins/Atomics/or/nonshared-int-views.js +++ b/test/built-ins/Atomics/or/nonshared-int-views.js @@ -6,17 +6,12 @@ esid: sec-atomics.or description: > Test Atomics.or on non-shared integer TypedArrays includes: [testTypedArray.js] -features: [ArrayBuffer, Atomics, BigInt, TypedArray] +features: [ArrayBuffer, Atomics, TypedArray] ---*/ var buffer = new ArrayBuffer(16); var views = intArrayConstructors.slice(); -if (typeof BigInt !== "undefined") { - views.push(BigInt64Array); - views.push(BigUint64Array); -} - testWithTypedArrayConstructors(function(TA) { assert.throws(TypeError, (() => Atomics.or(new TA(buffer), 0, 0))); }, views); diff --git a/test/built-ins/Atomics/store/bad-range.js b/test/built-ins/Atomics/store/bad-range.js index 2b03ecbbad..d5c31508f0 100644 --- a/test/built-ins/Atomics/store/bad-range.js +++ b/test/built-ins/Atomics/store/bad-range.js @@ -6,17 +6,12 @@ esid: sec-atomics.store description: > Test range checking of Atomics.store on arrays that allow atomic operations includes: [testAtomics.js, testTypedArray.js] -features: [ArrayBuffer, arrow-function, Atomics, BigInt, DataView, for-of, let, SharedArrayBuffer, TypedArray] +features: [ArrayBuffer, arrow-function, Atomics, DataView, for-of, let, SharedArrayBuffer, TypedArray] ---*/ var buffer = new SharedArrayBuffer(8); var views = intArrayConstructors.slice(); -if (typeof BigInt !== "undefined") { - views.push(BigInt64Array); - views.push(BigUint64Array); -} - testWithTypedArrayConstructors(function(TA) { let view = new TA(buffer); testWithAtomicsOutOfBoundsIndices(function(IdxGen) { diff --git a/test/built-ins/Atomics/store/nonshared-int-views.js b/test/built-ins/Atomics/store/nonshared-int-views.js index 2f0d698bb4..b6aec38496 100644 --- a/test/built-ins/Atomics/store/nonshared-int-views.js +++ b/test/built-ins/Atomics/store/nonshared-int-views.js @@ -6,17 +6,12 @@ esid: sec-atomics.store description: > Test Atomics.store on non-shared integer TypedArrays includes: [testTypedArray.js] -features: [ArrayBuffer, Atomics, BigInt, TypedArray] +features: [ArrayBuffer, Atomics, TypedArray] ---*/ var buffer = new ArrayBuffer(16); var views = intArrayConstructors.slice(); -if (typeof BigInt !== "undefined") { - views.push(BigInt64Array); - views.push(BigUint64Array); -} - testWithTypedArrayConstructors(function(TA) { assert.throws(TypeError, (() => Atomics.store(new TA(buffer), 0, 0))); }, views); diff --git a/test/built-ins/Atomics/sub/bad-range.js b/test/built-ins/Atomics/sub/bad-range.js index 395bc92061..35e152e681 100644 --- a/test/built-ins/Atomics/sub/bad-range.js +++ b/test/built-ins/Atomics/sub/bad-range.js @@ -6,17 +6,12 @@ esid: sec-atomics.sub description: > Test range checking of Atomics.sub on arrays that allow atomic operations includes: [testAtomics.js, testTypedArray.js] -features: [ArrayBuffer, arrow-function, Atomics, BigInt, DataView, for-of, let, SharedArrayBuffer, TypedArray] +features: [ArrayBuffer, arrow-function, Atomics, DataView, for-of, let, SharedArrayBuffer, TypedArray] ---*/ var buffer = new SharedArrayBuffer(8); var views = intArrayConstructors.slice(); -if (typeof BigInt !== "undefined") { - views.push(BigInt64Array); - views.push(BigUint64Array); -} - testWithTypedArrayConstructors(function(TA) { let view = new TA(buffer); testWithAtomicsOutOfBoundsIndices(function(IdxGen) { diff --git a/test/built-ins/Atomics/sub/nonshared-int-views.js b/test/built-ins/Atomics/sub/nonshared-int-views.js index 3352ad9453..a254a20489 100644 --- a/test/built-ins/Atomics/sub/nonshared-int-views.js +++ b/test/built-ins/Atomics/sub/nonshared-int-views.js @@ -6,17 +6,12 @@ esid: sec-atomics.sub description: > Test Atomics.sub on non-shared integer TypedArrays includes: [testTypedArray.js] -features: [ArrayBuffer, Atomics, BigInt, TypedArray] +features: [ArrayBuffer, Atomics, TypedArray] ---*/ var buffer = new ArrayBuffer(16); var views = intArrayConstructors.slice(); -if (typeof BigInt !== "undefined") { - views.push(BigInt64Array); - views.push(BigUint64Array); -} - testWithTypedArrayConstructors(function(TA) { assert.throws(TypeError, (() => Atomics.sub(new TA(buffer), 0, 0))); }, views); diff --git a/test/built-ins/Atomics/wait/bad-range.js b/test/built-ins/Atomics/wait/bad-range.js index 87203dcc29..3bb8da937c 100644 --- a/test/built-ins/Atomics/wait/bad-range.js +++ b/test/built-ins/Atomics/wait/bad-range.js @@ -12,17 +12,12 @@ info: | ... includes: [testAtomics.js, testTypedArray.js] -features: [ArrayBuffer, arrow-function, Atomics, BigInt, DataView, for-of, let, SharedArrayBuffer, TypedArray] +features: [ArrayBuffer, arrow-function, Atomics, DataView, for-of, let, SharedArrayBuffer, TypedArray] ---*/ var sab = new SharedArrayBuffer(8); var views = [Int32Array]; -if (typeof BigInt !== "undefined") { - views.push(BigInt64Array); - views.push(BigUint64Array); -} - testWithTypedArrayConstructors(function(TA) { let view = new TA(sab); testWithAtomicsOutOfBoundsIndices(function(IdxGen) { diff --git a/test/built-ins/Atomics/wake/bad-range.js b/test/built-ins/Atomics/wake/bad-range.js index 5e8bd9c165..0c4824d5bf 100644 --- a/test/built-ins/Atomics/wake/bad-range.js +++ b/test/built-ins/Atomics/wake/bad-range.js @@ -12,17 +12,12 @@ info: | .. includes: [testAtomics.js, testTypedArray.js] -features: [ArrayBuffer, arrow-function, Atomics, BigInt, DataView, for-of, let, SharedArrayBuffer, TypedArray] +features: [ArrayBuffer, arrow-function, Atomics, DataView, for-of, let, SharedArrayBuffer, TypedArray] ---*/ var sab = new SharedArrayBuffer(8); var views = [Int32Array]; -if (typeof BigInt !== "undefined") { - views.push(BigInt64Array); - views.push(BigUint64Array); -} - testWithTypedArrayConstructors(function(TA) { let view = new TA(sab); testWithAtomicsOutOfBoundsIndices(function(IdxGen) { diff --git a/test/built-ins/Atomics/wake/nonshared-int-views.js b/test/built-ins/Atomics/wake/nonshared-int-views.js index b49611e58c..8659be3581 100644 --- a/test/built-ins/Atomics/wake/nonshared-int-views.js +++ b/test/built-ins/Atomics/wake/nonshared-int-views.js @@ -6,17 +6,12 @@ esid: sec-atomics.wake description: > Test Atomics.wake on non-shared integer TypedArrays includes: [testTypedArray.js] -features: [ArrayBuffer, Atomics, BigInt, TypedArray] +features: [ArrayBuffer, Atomics, TypedArray] ---*/ var buffer = new ArrayBuffer(16); var views = intArrayConstructors.slice(); -if (typeof BigInt !== "undefined") { - views.push(BigInt64Array); - views.push(BigUint64Array); -} - testWithTypedArrayConstructors(function(TA) { // Should fail even if waking zero waiters assert.throws(TypeError, (() => Atomics.wake(new TA(buffer), 0, 0))); diff --git a/test/built-ins/Atomics/xor/bad-range.js b/test/built-ins/Atomics/xor/bad-range.js index 4a311a80b8..2dc1c48ee4 100644 --- a/test/built-ins/Atomics/xor/bad-range.js +++ b/test/built-ins/Atomics/xor/bad-range.js @@ -6,17 +6,12 @@ esid: sec-atomics.xor description: > Test range checking of Atomics.xor on arrays that allow atomic operations includes: [testAtomics.js, testTypedArray.js] -features: [ArrayBuffer, arrow-function, Atomics, BigInt, DataView, for-of, let, SharedArrayBuffer, TypedArray] +features: [ArrayBuffer, arrow-function, Atomics, DataView, for-of, let, SharedArrayBuffer, TypedArray] ---*/ var sab = new SharedArrayBuffer(8); var views = intArrayConstructors.slice(); -if (typeof BigInt !== "undefined") { - views.push(BigInt64Array); - views.push(BigUint64Array); -} - testWithTypedArrayConstructors(function(TA) { let view = new TA(sab); testWithAtomicsOutOfBoundsIndices(function(IdxGen) { diff --git a/test/built-ins/Atomics/xor/nonshared-int-views.js b/test/built-ins/Atomics/xor/nonshared-int-views.js index 7e5218ebde..2ecdb02f5d 100644 --- a/test/built-ins/Atomics/xor/nonshared-int-views.js +++ b/test/built-ins/Atomics/xor/nonshared-int-views.js @@ -6,17 +6,12 @@ esid: sec-atomics.xor description: > Test Atomics.xor on non-shared integer TypedArrays includes: [testTypedArray.js] -features: [ArrayBuffer, Atomics, BigInt, TypedArray] +features: [ArrayBuffer, Atomics, TypedArray] ---*/ var buffer = new ArrayBuffer(16); var views = intArrayConstructors.slice(); -if (typeof BigInt !== "undefined") { - views.push(BigInt64Array); - views.push(BigUint64Array); -} - testWithTypedArrayConstructors(function(TA) { assert.throws(TypeError, (() => Atomics.xor(new TA(buffer), 0, 0))); }, views);