blob: a57b1e6dd2791daee1fe3cb94097be46f7537701 (
plain)
1
2
3
4
5
6
|
// "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");
|