Sign in
webkit
/
WebKit
/
a9c91ce2c5aea1dcbb1791839037fd37c48643d1
/
.
/
JSTests
/
stress
/
atomics-store-result-int52.js
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
);