do-while grammar

Peter van der Zee ecma at
Wed Feb 9 00:35:02 PST 2011

Fwiw I don't recall any specific cases of input accepted by browsers which
shouldn't parse according to the spec, other than functions in statements.
Even "callable regular expressions" are fine as far as the grammar goes. I
don't have an extensive test suite for regular expressions or strict mode
though. Not yet, anyways.

The do-while case should indeed not have ASI applied unless allowed by 7.9.1
(so the given test case should fail). I think this is assumed, but it wasn't
explicitly stated in the thread.

- peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list