Sign in
webkit
/
WebKit
/
2ab9dfaee5c791e0d7b2c0893a55ced8677e2e2a
/
.
/
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"
);