| 1 |
// Copyright (C) 2017 Mozilla Corporation. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
esid: sec-atomics.wake |
| 6 |
description: > |
| 7 |
Test Atomics.wake on view values other than TypedArrays |
| 8 |
includes: [testAtomics.js] |
| 9 |
features: [SharedArrayBuffer, ArrayBuffer, DataView, Atomics, arrow-function, let, for-of] |
| 10 |
---*/ |
| 11 |
|
| 12 |
testWithAtomicsNonViewValues(function(view) { |
| 13 |
assert.throws(TypeError, (() => Atomics.wake(view, 0, 0))); // Even with count == 0 |
| 14 |
}); |