michael@0: // "let" is not allowed as an identifier. michael@0: michael@0: assertThrowsInstanceOf(function () { eval('[for (let of y) foo]') }, SyntaxError); michael@0: assertThrowsInstanceOf(function () { eval('(for (let of y) foo)') }, SyntaxError); michael@0: michael@0: reportCompare(null, null, "test");