archives

« Bugzilla Issues Index

#157 — "do{}while(false)false" prohibited in spec but allowed in consensus reality


+++ This bug was initially created as a clone of Bug #8 +++

See thread beginning at https://mail.mozilla.org/pipermail/es-discuss/2011-February/012751.html especially https://mail.mozilla.org/pipermail/es-discuss/2011-February/012758.html

https://bugzilla.mozilla.org/show_bug.cgi?id=238945
https://bugs.ecmascript.org/show_bug.cgi?id=7
http://code.google.com/p/v8/issues/detail?id=1127

If it is too late to add an errata to the ES5.1 spec to make it meet reality, we need to at least record this on the ecmascript wiki. And we should fix it in the next spec.


efrom July 2001 meting notes:

Approved -- this is the de-facto standard whereby do;while(0)x will have a semicolon inserted before x.


corrected by removing required semicolon as final token of do-while statement.

fixed in feb 2012 draft