Sign in
webkit
/
WebKit
/
24e422ba3fd9aecfc4bf76f3dddf0b1a503c43cc
/
.
/
JSTests
/
es6
/
miscellaneous_no_assignments_allowed_in_for-in_head.js
blob: f34ca373bac9c5b7032041862458764ed61c3d1f [
file
] [
log
] [
blame
]
function
test
()
{
try
{
eval
(
'for (var i = 0 in {}) {}'
);
}
catch
(
e
)
{
return
true
;
}
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);