do-while grammar

Oliver Hunt oliver at apple.com
Wed Feb 9 08:46:35 PST 2011


On Feb 9, 2011, at 12:35 AM, Peter van der Zee wrote:

> 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.

WebKit nightlies don't allow callable RegExps anymore -- I haven't yet heard of any fallout from this change.

> 
> 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
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss



More information about the es-discuss mailing list