Sign in
webkit
/
WebKit
/
4ba7fe936ef6ae9d62102c8eed5d38ba3f6d5cc4
/
.
/
JSTests
/
es6
/
typed_arrays_DataView_Int16.js
blob: cc795df212c871051bce9864b35e79dcc59211c0 [
file
] [
log
] [
blame
]
function
test
()
{
var
buffer
=
new
ArrayBuffer
(
64
);
var
view
=
new
DataView
(
buffer
);
view
.
setInt16
(
0
,
0x8000
);
return
view
.
getInt16
(
0
)
===
-
0x8000
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);