Sign in
webkit
/
WebKit
/
eed77a11249751f1b57a22699bda54381a2f6123
/
.
/
JSTests
/
stress
/
atomics-store-result.js
blob: 0cf87433673c158ea98550d311077390237f4dee [
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
,
0xff00
+
i
),
0xff00
+
i
);