Status: New
Owner: ----
New issue 1924 by [email protected]: Parse error with labelled statements
http://code.google.com/p/v8/issues/detail?id=1924
Test case:
a: if (0) break a; // ok
b: if (0) { break b; } else { } // ok
c: if (0) break c; else { } // parse error
Fails to parse with the current bleeding edge (r10552) and produces the
following syntax error:
$ ./d8 test.js
test.js:3: SyntaxError: Unexpected token else
c: if (0) break c; else { } // parse error
^^^^
SyntaxError: Unexpected token else
But it's valid JS if I read the ecmascript spec right. smjs seems to agree.
It's quite the fringe case, of course, but I thought I'd report it anyway.
Consider it something for a lazy Friday afternoon.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev