do-while grammar

Brendan Eich brendan at
Tue Feb 8 14:56:40 PST 2011

On Feb 8, 2011, at 2:41 PM, Allen Wirfs-Brock wrote:

>> The other one I know of is nested named function declarations <>. And there was an ASI mis-description for "break" and "continue" that was corrected between ES5 and ES5.1.
> There really isn't any useful common semantics for function declaration in blocks.  See 

Yet we keep running into bugs where someone uses function-in-block intersection semantics.

Clearly it's useful, since we want it in Harmony. Of course, it's not supported so developers counting on it are on thin ice regarding name collisions, name leaks, etc.

Most recent example:

See in particular.

Nevertheless, we are banning function-in-block under Firefox 4's ES5 strict mode implementation.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list