1 // |reftest| skip-if(!this.hasOwnProperty('Atomics')) -- Atomics is not enabled unconditionally
2 // Copyright (C) 2018 Amal Hussein. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
5 esid: sec-atomics.notify
7 Throws a TypeError if the typedArray arg is not a TypedArray object
9 Atomics.notify( typedArray, index, count )
11 1.Let buffer be ? ValidateSharedIntegerTypedArray(typedArray, true).
13 3.If typedArray does not have a [[TypedArrayName]] internal slot, throw a TypeError exception.
20 throw new Test262Error('should not evaluate this code');
24 assert.throws(TypeError, function() {
25 Atomics.wait({}, 0, 0, 0);
26 }, '`Atomics.wait({}, 0, 0, 0)` throws TypeError');
28 assert.throws(TypeError, function () {
29 Atomics.wait({}, poisoned, poisoned, poisoned);
30 }, '`Atomics.wait({}, poisoned, poisoned, poisoned)` throws TypeError');