Sign in
webkit
/
WebKit
/
2459939e8cc33aa793cfbafafc3ea7911bf42db7
/
.
/
JSTests
/
es6
/
typed_arrays_DataView_Uint16.js
blob: 809fafa668df5f6911c813249d0a618dc62f5230 [
file
] [
log
] [
blame
]
function
test
()
{
var
buffer
=
new
ArrayBuffer
(
64
);
var
view
=
new
DataView
(
buffer
);
view
.
setUint16
(
0
,
0x10000
);
return
view
.
getUint16
(
0
)
===
0
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);