summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Atomics/compareExchange
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Atomics/compareExchange')
-rw-r--r--js/src/tests/test262/built-ins/Atomics/compareExchange/bad-range.js4
-rw-r--r--js/src/tests/test262/built-ins/Atomics/compareExchange/bigint/bad-range.js2
-rw-r--r--js/src/tests/test262/built-ins/Atomics/compareExchange/good-views.js2
-rw-r--r--js/src/tests/test262/built-ins/Atomics/compareExchange/non-shared-bufferdata.js2
-rw-r--r--js/src/tests/test262/built-ins/Atomics/compareExchange/non-shared-int-views-throws.js2
-rw-r--r--js/src/tests/test262/built-ins/Atomics/compareExchange/non-views.js2
-rw-r--r--js/src/tests/test262/built-ins/Atomics/compareExchange/not-a-constructor.js2
-rw-r--r--js/src/tests/test262/built-ins/Atomics/compareExchange/validate-arraytype-before-expectedValue-coercion.js2
-rw-r--r--js/src/tests/test262/built-ins/Atomics/compareExchange/validate-arraytype-before-index-coercion.js2
-rw-r--r--js/src/tests/test262/built-ins/Atomics/compareExchange/validate-arraytype-before-replacementValue-coercion.js2
10 files changed, 11 insertions, 11 deletions
diff --git a/js/src/tests/test262/built-ins/Atomics/compareExchange/bad-range.js b/js/src/tests/test262/built-ins/Atomics/compareExchange/bad-range.js
index 507b33750c..d37df6c890 100644
--- a/js/src/tests/test262/built-ins/Atomics/compareExchange/bad-range.js
+++ b/js/src/tests/test262/built-ins/Atomics/compareExchange/bad-range.js
@@ -1,4 +1,4 @@
-// |reftest| skip-if(!this.hasOwnProperty('Atomics')||!this.hasOwnProperty('SharedArrayBuffer')||(this.hasOwnProperty('getBuildConfiguration')&&getBuildConfiguration('arm64-simulator'))) -- Atomics,SharedArrayBuffer is not enabled unconditionally, ARM64 Simulator cannot emulate atomics
+// |reftest| shell-option(--enable-float16array) skip-if(!this.hasOwnProperty('Atomics')||!this.hasOwnProperty('SharedArrayBuffer')||(this.hasOwnProperty('getBuildConfiguration')&&getBuildConfiguration('arm64-simulator'))) -- Atomics,SharedArrayBuffer is not enabled unconditionally, ARM64 Simulator cannot emulate atomics
// Copyright (C) 2017 Mozilla Corporation. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
@@ -18,7 +18,7 @@ testWithTypedArrayConstructors(function(TA) {
testWithAtomicsOutOfBoundsIndices(function(IdxGen) {
assert.throws(RangeError, function() {
Atomics.compareExchange(view, IdxGen(view), 10, 0);
- }, '`Atomics.compareExchange(view, IdxGen(view), 10, 0)` throws RangeError');
+ });
});
}, views);
diff --git a/js/src/tests/test262/built-ins/Atomics/compareExchange/bigint/bad-range.js b/js/src/tests/test262/built-ins/Atomics/compareExchange/bigint/bad-range.js
index 1799f1cefc..57fce441d1 100644
--- a/js/src/tests/test262/built-ins/Atomics/compareExchange/bigint/bad-range.js
+++ b/js/src/tests/test262/built-ins/Atomics/compareExchange/bigint/bad-range.js
@@ -16,7 +16,7 @@ testWithBigIntTypedArrayConstructors(function(TA) {
testWithAtomicsOutOfBoundsIndices(function(IdxGen) {
assert.throws(RangeError, function() {
Atomics.compareExchange(view, IdxGen(view), 10, 0n);
- }, '`Atomics.compareExchange(view, IdxGen(view), 10, 0n)` throws RangeError');
+ });
});
});
diff --git a/js/src/tests/test262/built-ins/Atomics/compareExchange/good-views.js b/js/src/tests/test262/built-ins/Atomics/compareExchange/good-views.js
index 3f1e5fd82c..a92fbbf9a0 100644
--- a/js/src/tests/test262/built-ins/Atomics/compareExchange/good-views.js
+++ b/js/src/tests/test262/built-ins/Atomics/compareExchange/good-views.js
@@ -1,4 +1,4 @@
-// |reftest| skip-if(!this.hasOwnProperty('Atomics')||!this.hasOwnProperty('SharedArrayBuffer')||(this.hasOwnProperty('getBuildConfiguration')&&getBuildConfiguration('arm64-simulator'))) -- Atomics,SharedArrayBuffer is not enabled unconditionally, ARM64 Simulator cannot emulate atomics
+// |reftest| shell-option(--enable-float16array) skip-if(!this.hasOwnProperty('Atomics')||!this.hasOwnProperty('SharedArrayBuffer')||(this.hasOwnProperty('getBuildConfiguration')&&getBuildConfiguration('arm64-simulator'))) -- Atomics,SharedArrayBuffer is not enabled unconditionally, ARM64 Simulator cannot emulate atomics
// Copyright (C) 2017 Mozilla Corporation. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
diff --git a/js/src/tests/test262/built-ins/Atomics/compareExchange/non-shared-bufferdata.js b/js/src/tests/test262/built-ins/Atomics/compareExchange/non-shared-bufferdata.js
index a5d3058801..fe669bbcf8 100644
--- a/js/src/tests/test262/built-ins/Atomics/compareExchange/non-shared-bufferdata.js
+++ b/js/src/tests/test262/built-ins/Atomics/compareExchange/non-shared-bufferdata.js
@@ -1,4 +1,4 @@
-// |reftest| skip-if(!this.hasOwnProperty('Atomics')) -- Atomics is not enabled unconditionally
+// |reftest| shell-option(--enable-float16array) skip-if(!this.hasOwnProperty('Atomics')) -- Atomics is not enabled unconditionally
// Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
diff --git a/js/src/tests/test262/built-ins/Atomics/compareExchange/non-shared-int-views-throws.js b/js/src/tests/test262/built-ins/Atomics/compareExchange/non-shared-int-views-throws.js
index 45df6f8cb5..637dea2721 100644
--- a/js/src/tests/test262/built-ins/Atomics/compareExchange/non-shared-int-views-throws.js
+++ b/js/src/tests/test262/built-ins/Atomics/compareExchange/non-shared-int-views-throws.js
@@ -1,4 +1,4 @@
-// |reftest| skip-if(!this.hasOwnProperty('Atomics')) -- Atomics is not enabled unconditionally
+// |reftest| shell-option(--enable-float16array) skip-if(!this.hasOwnProperty('Atomics')) -- Atomics is not enabled unconditionally
// Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
diff --git a/js/src/tests/test262/built-ins/Atomics/compareExchange/non-views.js b/js/src/tests/test262/built-ins/Atomics/compareExchange/non-views.js
index f3be53cbe7..9ab32629de 100644
--- a/js/src/tests/test262/built-ins/Atomics/compareExchange/non-views.js
+++ b/js/src/tests/test262/built-ins/Atomics/compareExchange/non-views.js
@@ -13,7 +13,7 @@ features: [ArrayBuffer, Atomics, DataView, SharedArrayBuffer, Symbol, TypedArray
testWithAtomicsNonViewValues(function(view) {
assert.throws(TypeError, function() {
Atomics.compareExchange(view, 0, 0, 0);
- }, '`Atomics.compareExchange(view, 0, 0, 0)` throws TypeError');
+ });
});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Atomics/compareExchange/not-a-constructor.js b/js/src/tests/test262/built-ins/Atomics/compareExchange/not-a-constructor.js
index c42a00268b..207a8b2d4d 100644
--- a/js/src/tests/test262/built-ins/Atomics/compareExchange/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/Atomics/compareExchange/not-a-constructor.js
@@ -30,7 +30,7 @@ assert.sameValue(
assert.throws(TypeError, () => {
new Atomics.compareExchange(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)));
-}, '`new Atomics.compareExchange(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError');
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Atomics/compareExchange/validate-arraytype-before-expectedValue-coercion.js b/js/src/tests/test262/built-ins/Atomics/compareExchange/validate-arraytype-before-expectedValue-coercion.js
index 7392e72344..d57c025eaa 100644
--- a/js/src/tests/test262/built-ins/Atomics/compareExchange/validate-arraytype-before-expectedValue-coercion.js
+++ b/js/src/tests/test262/built-ins/Atomics/compareExchange/validate-arraytype-before-expectedValue-coercion.js
@@ -1,4 +1,4 @@
-// |reftest| skip-if(!this.hasOwnProperty('Atomics')) -- Atomics is not enabled unconditionally
+// |reftest| shell-option(--enable-float16array) skip-if(!this.hasOwnProperty('Atomics')) -- Atomics is not enabled unconditionally
// Copyright (C) 2019 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
diff --git a/js/src/tests/test262/built-ins/Atomics/compareExchange/validate-arraytype-before-index-coercion.js b/js/src/tests/test262/built-ins/Atomics/compareExchange/validate-arraytype-before-index-coercion.js
index 5ddd207d24..004d9f66a3 100644
--- a/js/src/tests/test262/built-ins/Atomics/compareExchange/validate-arraytype-before-index-coercion.js
+++ b/js/src/tests/test262/built-ins/Atomics/compareExchange/validate-arraytype-before-index-coercion.js
@@ -1,4 +1,4 @@
-// |reftest| skip-if(!this.hasOwnProperty('Atomics')) -- Atomics is not enabled unconditionally
+// |reftest| shell-option(--enable-float16array) skip-if(!this.hasOwnProperty('Atomics')) -- Atomics is not enabled unconditionally
// Copyright (C) 2019 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
diff --git a/js/src/tests/test262/built-ins/Atomics/compareExchange/validate-arraytype-before-replacementValue-coercion.js b/js/src/tests/test262/built-ins/Atomics/compareExchange/validate-arraytype-before-replacementValue-coercion.js
index 065a032809..37676f2c7a 100644
--- a/js/src/tests/test262/built-ins/Atomics/compareExchange/validate-arraytype-before-replacementValue-coercion.js
+++ b/js/src/tests/test262/built-ins/Atomics/compareExchange/validate-arraytype-before-replacementValue-coercion.js
@@ -1,4 +1,4 @@
-// |reftest| skip-if(!this.hasOwnProperty('Atomics')) -- Atomics is not enabled unconditionally
+// |reftest| shell-option(--enable-float16array) skip-if(!this.hasOwnProperty('Atomics')) -- Atomics is not enabled unconditionally
// Copyright (C) 2019 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.