summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/asm.js/bug1161298.js
blob: 60418491579e392088d5e3735d53bf674f39407b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// The length exceeds INT32_MAX and should be rejected.

if (!this.SharedArrayBuffer)
    quit(0);

var failed = false;
try {
    var sab = new SharedArrayBuffer((2147483648));
}
catch (e) {
    failed = true;
}
assertEq(failed, true);