Sign in
webkit
/
WebKit
/
49c45f529348e27f11122daecbee33e4fa730919
/
.
/
JSTests
/
es6
/
typed_arrays_DataView_Uint8.js
blob: 71f18bb44c573b7749514733efc467acc963f7e0 [
file
] [
log
] [
blame
]
function
test
()
{
var
buffer
=
new
ArrayBuffer
(
64
);
var
view
=
new
DataView
(
buffer
);
view
.
setUint8
(
0
,
0x100
);
return
view
.
getUint8
(
0
)
===
0
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);