https://codereview.chromium.org/722203006/diff/40001/test/mjsunit/harmony/block-non-strict-errors.js
File test/mjsunit/harmony/block-non-strict-errors.js (right):
https://codereview.chromium.org/722203006/diff/40001/test/mjsunit/harmony/block-non-strict-errors.js#newcode33
test/mjsunit/harmony/block-non-strict-errors.js:33: CheckError("1, class
{};");
On 2014/11/19 17:23:43, rossberg wrote:
On 2014/11/19 16:51:04, arv wrote:
> I assume your intention was to test class expression here. But this
is parsing
a
> statement so you need add parens around the expression.
No, the "1," in front causes it to be parsed as a member-expression
inside a
comma expression inside an expression statement.
Ooops
The 1 was lost in the noise.
But I put it in parens for more clarity.
https://codereview.chromium.org/722203006/
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.