Sign in
cobalt
/
cobalt
/
c73ce7d5dfce7ae20bcc30efc5f220e0fbac12b1
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
tests
/
ecma_6
/
Comprehensions
/
syntax.js
blob: a57b1e6dd2791daee1fe3cb94097be46f7537701 [
file
] [
log
] [
blame
]
// "let" is not allowed as an identifier.
assertThrowsInstanceOf
(
function
()
{
eval
(
'[for (let of y) foo]'
)
},
SyntaxError
);
assertThrowsInstanceOf
(
function
()
{
eval
(
'(for (let of y) foo)'
)
},
SyntaxError
);
reportCompare
(
null
,
null
,
"test"
);