summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Atomics/notify/non-int32-typedarray-throws.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Atomics/notify/non-int32-typedarray-throws.js')
-rw-r--r--js/src/tests/test262/built-ins/Atomics/notify/non-int32-typedarray-throws.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/js/src/tests/test262/built-ins/Atomics/notify/non-int32-typedarray-throws.js b/js/src/tests/test262/built-ins/Atomics/notify/non-int32-typedarray-throws.js
index 5ca1ab5080..a3cf9027e3 100644
--- a/js/src/tests/test262/built-ins/Atomics/notify/non-int32-typedarray-throws.js
+++ b/js/src/tests/test262/built-ins/Atomics/notify/non-int32-typedarray-throws.js
@@ -27,14 +27,14 @@ assert.throws(TypeError, function() {
new SharedArrayBuffer(Float64Array.BYTES_PER_ELEMENT * 8)
);
Atomics.notify(view, poisoned, poisoned);
-}, '`const view = new Float64Array( new SharedArrayBuffer(Float64Array.BYTES_PER_ELEMENT * 8) ); Atomics.notify(view, poisoned, poisoned)` throws TypeError');
+});
assert.throws(TypeError, function() {
const view = new Float32Array(
new SharedArrayBuffer(Float32Array.BYTES_PER_ELEMENT * 4)
);
Atomics.notify(view, poisoned, poisoned);
-}, '`const view = new Float32Array( new SharedArrayBuffer(Float32Array.BYTES_PER_ELEMENT * 4) ); Atomics.notify(view, poisoned, poisoned)` throws TypeError');
+});
if (typeof Float16Array !== 'undefined') {
assert.throws(TypeError, function() {
@@ -42,7 +42,7 @@ if (typeof Float16Array !== 'undefined') {
new SharedArrayBuffer(Float16Array.BYTES_PER_ELEMENT * 2)
);
Atomics.notify(view, poisoned, poisoned);
- }, '`const view = new Float16Array( new SharedArrayBuffer(Float16Array.BYTES_PER_ELEMENT * 2) ); Atomics.notify(view, poisoned, poisoned)` throws TypeError');
+ });
}
assert.throws(TypeError, function() {
@@ -50,41 +50,41 @@ assert.throws(TypeError, function() {
new SharedArrayBuffer(Int16Array.BYTES_PER_ELEMENT * 2)
);
Atomics.notify(view, poisoned, poisoned);
-}, '`const view = new Int16Array( new SharedArrayBuffer(Int16Array.BYTES_PER_ELEMENT * 2) ); Atomics.notify(view, poisoned, poisoned)` throws TypeError');
+});
assert.throws(TypeError, function() {
const view = new Int8Array(
new SharedArrayBuffer(Int8Array.BYTES_PER_ELEMENT)
);
Atomics.notify(view, poisoned, poisoned);
-}, '`const view = new Int8Array( new SharedArrayBuffer(Int8Array.BYTES_PER_ELEMENT) ); Atomics.notify(view, poisoned, poisoned)` throws TypeError');
+});
assert.throws(TypeError, function() {
const view = new Uint32Array(
new SharedArrayBuffer(Uint32Array.BYTES_PER_ELEMENT * 4)
);
Atomics.notify(new Uint32Array(), poisoned, poisoned);
-}, '`const view = new Uint32Array( new SharedArrayBuffer(Uint32Array.BYTES_PER_ELEMENT * 4) ); Atomics.notify(new Uint32Array(), poisoned, poisoned)` throws TypeError');
+});
assert.throws(TypeError, function() {
const view = new Uint16Array(
new SharedArrayBuffer(Uint16Array.BYTES_PER_ELEMENT * 2)
);
Atomics.notify(view, poisoned, poisoned);
-}, '`const view = new Uint16Array( new SharedArrayBuffer(Uint16Array.BYTES_PER_ELEMENT * 2) ); Atomics.notify(view, poisoned, poisoned)` throws TypeError');
+});
assert.throws(TypeError, function() {
const view = new Uint8Array(
new SharedArrayBuffer(Uint8Array.BYTES_PER_ELEMENT)
);
Atomics.notify(view, poisoned, poisoned);
-}, '`const view = new Uint8Array( new SharedArrayBuffer(Uint8Array.BYTES_PER_ELEMENT) ); Atomics.notify(view, poisoned, poisoned)` throws TypeError');
+});
assert.throws(TypeError, function() {
const view = new Uint8ClampedArray(
new SharedArrayBuffer(Uint8ClampedArray.BYTES_PER_ELEMENT)
);
Atomics.notify(view, poisoned, poisoned);
-}, '`const view = new Uint8ClampedArray( new SharedArrayBuffer(Uint8ClampedArray.BYTES_PER_ELEMENT) ); Atomics.notify(view, poisoned, poisoned)` throws TypeError');
+});
reportCompare(0, 0);