summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1266768.js
blob: 7d7937b5116c9ec23499934670e90024b234fb17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
if (!this.SharedArrayBuffer)
    quit();

function mod(stdlib) {
    add = stdlib.Atomics.add;
    function f3() {
        add(i8a, 0 | 0 && this && BUGNUMBER, 0);
    }
    return {f3: f3, 0: 0};
}
i8a = new Int8Array(new SharedArrayBuffer(1));
var {
    f3
} = mod(this, {})
for (i = 0; i < 1000; i++)
    f3();