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