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