Sign in
webkit
/
WebKit
/
73c7b7b08069136c6d85537e1fc3427dd8fa1d44
/
.
/
JSTests
/
es6
/
for..of_loops_with_strings.js
blob: e583f772f24ce8a6ad95a7b76e333d6785c16972 [
file
] [
log
] [
blame
]
function
test
()
{
var
str
=
""
;
for
(
var
item of
"foo"
)
str
+=
item
;
return
str
===
"foo"
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);