summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/asm.js/bug1161298.js
blob: 19da18e17ef4f566e3a1a2b1e20efedcbefa9387 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// |jit-test| skip-if: !this.SharedArrayBuffer || largeArrayBufferSupported()

// The length exceeds INT32_MAX and should be rejected.

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