summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bug1692857.js
blob: 0da271200a1b265911978fb6f44acfd77b6decbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
var arrayView = new Float32Array(new ArrayBuffer(40));

function foo() {
    var x = arrayView[0];
    if (!x) {
        x = arrayView[NaN];
    }
    return x;
}

with ({}) {}
for (var i = 0; i < 100; i++) {
    foo();
}