Debian Codegraph @

js/src/jit-test/tests/sharedbuf/sab-construct-noargs-1068458.js

raw
1 // |jit-test| skip-if: !this.SharedArrayBuffer
2
3 // Note that as of 2014-09-18 it is not correct to construct a SharedArrayBuffer without
4 // a length acceptable to asm.js: at-least 4K AND (power-of-two OR multiple-of-16M).
5 // That is likely to change however (see bug 1068684). The test case is constructed
6 // to take that into account by catching exceptions. That does not impact the
7 // original bug, which is an assertion in the implementation.
8
9 try {
10 new SharedArrayBuffer // No arguments
11 }
12 catch (e) {
13 // Ignore it
14 }