js/src/tests/ecma_6/Comprehensions/syntax.js

branch
TOR_BUG_3246
changeset 7
129ffea94266
equal deleted inserted replaced
-1:000000000000 0:952c6ccc3cb2
1 // "let" is not allowed as an identifier.
2
3 assertThrowsInstanceOf(function () { eval('[for (let of y) foo]') }, SyntaxError);
4 assertThrowsInstanceOf(function () { eval('(for (let of y) foo)') }, SyntaxError);
5
6 reportCompare(null, null, "test");

mercurial