Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
tests
/
ecma_6
/
TypedArray
/
uint8clamped-constructor.js
blob: 3eefe70f1fa5e1f332757442041bab4b9d69691a [
file
] [
log
] [
blame
]
for
(
var
v of
[-
300
,
255.6
,
300
,
3.5
,
-
3.9
])
{
var
a
=
new
Uint8ClampedArray
([
v
]);
var
b
=
new
Uint8ClampedArray
(
1
);
b
[
0
]
=
v
;
assertEq
(
a
[
0
],
b
[
0
]);
}
reportCompare
(
true
,
true
);