Sign in
webkit
/
WebKit
/
437f2c5aff768557a26b18335a7cb15e0dbc5120
/
.
/
JSTests
/
es6
/
typed_arrays_Uint16Array.js
blob: d9b63d8d2a9a0a080cf1a1493efbd1cb508709bc [
file
] [
log
] [
blame
]
function
test
()
{
var
buffer
=
new
ArrayBuffer
(
64
);
var
view
=
new
Uint16Array
(
buffer
);
view
[
0
]
=
0x10000
;
return
view
[
0
]
===
0
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);