Sign in
webkit
/
WebKit
/
fd10f760421d170d3c112a898afd0d8277e3af75
/
.
/
JSTests
/
es6
/
typed_arrays_DataView_Float32.js
blob: 26fcefd29bad2630a3e3573922705c2fb305ec07 [
file
] [
log
] [
blame
]
function
test
()
{
var
buffer
=
new
ArrayBuffer
(
64
);
var
view
=
new
DataView
(
buffer
);
view
.
setFloat32
(
0
,
0.1
);
return
view
.
getFloat32
(
0
)
===
0.10000000149011612
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);