summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1736310.js
blob: da0d83188dcb4fb9ebd1300beee78f1fe3676962 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
gczeal(9, 10);
function a() {
    var b = new Int32Array(buffer);
    function c(d) {
        b[5] = d;
    }
    return c;
}
b = new Int32Array(6);
var buffer = b.buffer;
a()({
    valueOf() {
        detachArrayBuffer(buffer);
    }
})