do-while grammar

Dave Fugate dfugate at microsoft.com
Tue Feb 8 11:53:38 PST 2011


Just to confirm, do-while iteration statements do in fact require a semi-colon at the end as indicated in 12.6.1 of ES5, correct?  That is, a production of the nature:
                do {;} while (false) false;

would be invalid JavaScript as doesn't meet any of the three rules set out in 7.9.1,  right?

Thanks,

Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20110208/6dca0b85/attachment.html>


More information about the es-discuss mailing list