`do` expression conflicting with `do ... while` grammar?

Bradley Meck bradley.meck at gmail.com
Mon Feb 22 16:38:16 UTC 2016

how will people distinguish `do ... while` from `do` expressions? I tried
to find the exact grammar but couldn't after a bit of searching.

For example in current JS,

do {
while (true);

would cause infinite number of `console.log`s. But if the `do` is seen as
an expression statement it would only log once.

Any pointer to where the grammar is discussed would be quite helpful.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160222/55748087/attachment.html>

More information about the es-discuss mailing list