Sign in
webkit
/
WebKit
/
000a985cc582d9d77ca643860a7536440fb731b1
/
.
/
JSTests
/
es6
/
typed_arrays_DataView_Int32.js
blob: 98a65398ff773470a1da91df22ce0f98cd0f7b8b [
file
] [
log
] [
blame
]
function
test
()
{
var
buffer
=
new
ArrayBuffer
(
64
);
var
view
=
new
DataView
(
buffer
);
view
.
setInt32
(
0
,
0x80000000
);
return
view
.
getInt32
(
0
)
===
-
0x80000000
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);