Sign in
webkit
/
WebKit
/
2a0aecef68e2ca0674a52b051412def7e6b01404
/
.
/
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
);