blob: 2952d485ca079a5f1d4d35dad93c45b41606d1dc [file] [log] [blame]
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
var i8 = new Int8Array(32);
for (var i = 0; i < 1e4; ++i)
shouldBe(Atomics.store(i8, 0, 0xffffffff00 + i), 0xffffffff00 + i);