Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
for-of
/
array-prototype.js
blob: 074420e871fb7dc92015be967d2ed4eae47b5552 [
file
] [
log
] [
blame
]
// for-of works on Array.prototype.
var
v
;
for
(
v of
Array
.
prototype
)
throw
"FAIL"
;
var
s
=
''
;
Array
.
prototype
.
push
(
'a'
,
'b'
);
for
(
v of
Array
.
prototype
)
s
+=
v
;
assertEq
(
s
,
'ab'
);