Sign in
webkit
/
WebKit
/
a944ba26ba2dbe8f2015e7c249ea5975c1479654
/
.
/
JSTests
/
es6
/
typed_arrays_DataView_Int8.js
blob: c4ad9c90ce2c4638eb8d833777d4e9d9a414efed [
file
] [
log
] [
blame
]
function
test
()
{
var
buffer
=
new
ArrayBuffer
(
64
);
var
view
=
new
DataView
(
buffer
);
view
.
setInt8
(
0
,
0x80
);
return
view
.
getInt8
(
0
)
===
-
0x80
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);