summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/asm.js/bug1008636.js
blob: 03e52e9b17f67596703ce975f4b7fb9ba8e72dcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// |jit-test| error:TypeError
// stdlib is undefined

(function(stdlib, n, heap) {
    "use asm"
    var Int16ArrayView = new stdlib.Int16Array(heap)
    function f() {
        var x = 4.
        Int16ArrayView[~~((1 ? .0 : .9) % x) >> 1] = 0
        u(x)
    }
})()