summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Atomics/exchange
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Atomics/exchange')
-rw-r--r--js/src/tests/test262/built-ins/Atomics/exchange/bad-range.js4
-rw-r--r--js/src/tests/test262/built-ins/Atomics/exchange/bigint/bad-range.js2
-rw-r--r--js/src/tests/test262/built-ins/Atomics/exchange/good-views.js2
-rw-r--r--js/src/tests/test262/built-ins/Atomics/exchange/non-shared-bufferdata.js2
-rw-r--r--js/src/tests/test262/built-ins/Atomics/exchange/non-shared-int-views-throws.js2
-rw-r--r--js/src/tests/test262/built-ins/Atomics/exchange/non-views.js2
-rw-r--r--js/src/tests/test262/built-ins/Atomics/exchange/nonshared-int-views.js2
-rw-r--r--js/src/tests/test262/built-ins/Atomics/exchange/not-a-constructor.js2
-rw-r--r--js/src/tests/test262/built-ins/Atomics/exchange/validate-arraytype-before-index-coercion.js2
-rw-r--r--js/src/tests/test262/built-ins/Atomics/exchange/validate-arraytype-before-value-coercion.js2
10 files changed, 11 insertions, 11 deletions
diff --git a/js/src/tests/test262/built-ins/Atomics/exchange/bad-range.js b/js/src/tests/test262/built-ins/Atomics/exchange/bad-range.js
index 23cda3ced4..7267562e60 100644
--- a/js/src/tests/test262/built-ins/Atomics/exchange/bad-range.js
+++ b/js/src/tests/test262/built-ins/Atomics/exchange/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.exchange(view, IdxGen(view), 10, 0);
- }, '`Atomics.exchange(view, IdxGen(view), 10, 0)` throws RangeError');
+ });
});
}, views);
diff --git a/js/src/tests/test262/built-ins/Atomics/exchange/bigint/bad-range.js b/js/src/tests/test262/built-ins/Atomics/exchange/bigint/bad-range.js
index 205ecdcd59..9a54b77577 100644
--- a/js/src/tests/test262/built-ins/Atomics/exchange/bigint/bad-range.js
+++ b/js/src/tests/test262/built-ins/Atomics/exchange/bigint/bad-range.js
@@ -16,7 +16,7 @@ testWithBigIntTypedArrayConstructors(function(TA) {
testWithAtomicsOutOfBoundsIndices(function(IdxGen) {
assert.throws(RangeError, function() {
Atomics.exchange(view, IdxGen(view), 10n, 0n);
- }, '`Atomics.exchange(view, IdxGen(view), 10n, 0n)` throws RangeError');
+ });
});
});
diff --git a/js/src/tests/test262/built-ins/Atomics/exchange/good-views.js b/js/src/tests/test262/built-ins/Atomics/exchange/good-views.js
index 80eab9dfa6..b19a940390 100644
--- a/js/src/tests/test262/built-ins/Atomics/exchange/good-views.js
+++ b/js/src/tests/test262/built-ins/Atomics/exchange/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/exchange/non-shared-bufferdata.js b/js/src/tests/test262/built-ins/Atomics/exchange/non-shared-bufferdata.js
index 463ae4ebb6..31cdadc48f 100644
--- a/js/src/tests/test262/built-ins/Atomics/exchange/non-shared-bufferdata.js
+++ b/js/src/tests/test262/built-ins/Atomics/exchange/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/exchange/non-shared-int-views-throws.js b/js/src/tests/test262/built-ins/Atomics/exchange/non-shared-int-views-throws.js
index e3b53900aa..29007955d8 100644
--- a/js/src/tests/test262/built-ins/Atomics/exchange/non-shared-int-views-throws.js
+++ b/js/src/tests/test262/built-ins/Atomics/exchange/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/exchange/non-views.js b/js/src/tests/test262/built-ins/Atomics/exchange/non-views.js
index 8cc0d76b0a..733df3f58c 100644
--- a/js/src/tests/test262/built-ins/Atomics/exchange/non-views.js
+++ b/js/src/tests/test262/built-ins/Atomics/exchange/non-views.js
@@ -13,7 +13,7 @@ features: [ArrayBuffer, Atomics, DataView, SharedArrayBuffer, Symbol, TypedArray
testWithAtomicsNonViewValues(function(view) {
assert.throws(TypeError, function() {
Atomics.exchange(view, 0, 0);
- }, '`Atomics.exchange(view, 0, 0)` throws TypeError');
+ });
});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Atomics/exchange/nonshared-int-views.js b/js/src/tests/test262/built-ins/Atomics/exchange/nonshared-int-views.js
index 5a45151e87..a6400d1f77 100644
--- a/js/src/tests/test262/built-ins/Atomics/exchange/nonshared-int-views.js
+++ b/js/src/tests/test262/built-ins/Atomics/exchange/nonshared-int-views.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) 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/exchange/not-a-constructor.js b/js/src/tests/test262/built-ins/Atomics/exchange/not-a-constructor.js
index 2115000021..31e0599db0 100644
--- a/js/src/tests/test262/built-ins/Atomics/exchange/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/Atomics/exchange/not-a-constructor.js
@@ -26,7 +26,7 @@ assert.sameValue(isConstructor(Atomics.exchange), false, 'isConstructor(Atomics.
assert.throws(TypeError, () => {
new Atomics.exchange(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)));
-}, '`new Atomics.exchange(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError');
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Atomics/exchange/validate-arraytype-before-index-coercion.js b/js/src/tests/test262/built-ins/Atomics/exchange/validate-arraytype-before-index-coercion.js
index 5e8b5c17e3..f5e3a94bf1 100644
--- a/js/src/tests/test262/built-ins/Atomics/exchange/validate-arraytype-before-index-coercion.js
+++ b/js/src/tests/test262/built-ins/Atomics/exchange/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/exchange/validate-arraytype-before-value-coercion.js b/js/src/tests/test262/built-ins/Atomics/exchange/validate-arraytype-before-value-coercion.js
index eb5589c6ea..faf2e2ef13 100644
--- a/js/src/tests/test262/built-ins/Atomics/exchange/validate-arraytype-before-value-coercion.js
+++ b/js/src/tests/test262/built-ins/Atomics/exchange/validate-arraytype-before-value-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.