summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arrays/bug-1811789.js
blob: 335fb4051bc33b0ab25ad93421924510ae1a5341 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// |jit-test| --enable-change-array-by-copy

load(libdir + "asserts.js");

function f5() { } 

function f0() {
    const v15 = new Uint8Array();
    f5 &&= v15;
    const v17 = new Uint8Array();
    const v16 = wrapWithProto(v17, f5);
    v16.with();
}
assertThrowsInstanceOf(() => f0(), RangeError);