Sign in
webkit
/
WebKit
/
5018b83b58300de6a946efbfe8a7056c14da27e0
/
.
/
JSTests
/
es6
/
typed_arrays_Uint8ClampedArray.js
blob: cd2e60a6f1b171e504aceb3ac59ab565f3a749bd [
file
] [
log
] [
blame
]
function
test
()
{
var
buffer
=
new
ArrayBuffer
(
64
);
var
view
=
new
Uint8ClampedArray
(
buffer
);
view
[
0
]
=
0x100
;
return
view
[
0
]
===
0xFF
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);