blob: 79b7c7dda15be04f9cebb8fdfc785d344c20a21a [file] [log] [blame]
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
function test(i8, double) {
shouldBe(Atomics.store(i8, 0, double), 0);
}
noInline(test);
var i8 = new Int8Array(new SharedArrayBuffer(8));
for (var i = 0; i < 1e4; ++i)
test(i8, NaN);