diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/jit-test/tests/sharedbuf/sab-gating.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/sharedbuf/sab-gating.js b/js/src/jit-test/tests/sharedbuf/sab-gating.js new file mode 100644 index 0000000000..0f7cd07c8d --- /dev/null +++ b/js/src/jit-test/tests/sharedbuf/sab-gating.js @@ -0,0 +1,4 @@ +// Check gating of shared memory features in plain js (bug 1231338). + +assertEq(sharedMemoryEnabled(), !!this.SharedArrayBuffer); +assertEq(sharedMemoryEnabled(), !!this.Atomics); |