summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/sharedbuf/sab-gating.js
blob: 0f7cd07c8d6028b393683a03c8f2deef3f6320b1 (plain)
1
2
3
4
// Check gating of shared memory features in plain js (bug 1231338).

assertEq(sharedMemoryEnabled(), !!this.SharedArrayBuffer);
assertEq(sharedMemoryEnabled(), !!this.Atomics);