Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Atomics/or/non-views.js

raw
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.or
6 description: >
7 Test Atomics.or 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.or(view, 0, 0)));
14 });