summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-891773.js
blob: c5cb237782495a7640c100f8762ddf4fd29395ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
x = newGlobal()
Int32Array = x.Int32Array
x.p = new ArrayBuffer()
schedulegc(29);
(function(stdlib, n, heap) {
    "use asm"
    var Int32ArrayView = new stdlib.Int32Array(heap)
    function f() {
        Int32ArrayView[1]
    }
    return f
})(this, {
    f: new Function
}, new ArrayBuffer())