Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / Atomics / store / non-views.js
blobaa2608b3049b3e22446c24c94849213d1375cc4d
1 // |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
2 // Copyright (C) 2017 Mozilla Corporation.  All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
5 /*---
6 esid: sec-atomics.store
7 description: >
8   Test Atomics.store on view values other than TypedArrays
9 includes: [testAtomics.js]
10 features: [ArrayBuffer, Atomics, DataView, SharedArrayBuffer, Symbol, TypedArray]
11 ---*/
13 testWithAtomicsNonViewValues(function(view) {
14   assert.throws(TypeError, function() {
15     Atomics.store(view, 0, 0);
16   });
17 });
19 reportCompare(0, 0);