« 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 especially

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