New "ES6" Working Draft

# Allen Wirfs-Brock (14 years ago)

I have updated the wiki with my latest working draft of the ES.next ("ESA6") spec. Word and PDF versions are available.

They can be access from harmony:specification_drafts

Please report issues using bugs.ecmascript.org/enter_bug.cgi?product=Draft for 6th Edition against the "September 23, 2011 Draft"

Changes in this draft are generally marked with "Rev 3"

The change summary is: Resolved as fixed bugs 137, 140,167, 177, 183,184,185,186,187,188,189,190,191,193,196,196 Merged multiple built-in “class” branding internal properties into a single [[NativeBrand]] internal property In 10.2, change environment records so that both mutable and immutable bindings may be in an initialized state and must be initialized before use via InitializeBinding In 10.5 added separate algorithm for Block declaration instantiation. Block level declaration instantiations now specified. Function and global level still need to be updated to support let and const Added a Declaration production to the grammar and changed StatementList to include both Statement and Declaration Added let and const declarations. var declarations still hoist to function level and must not conflict with a let or const. Hoisting and temporal dead zone for all block scoped declarations Added semantics for destructuring binding pattern. Added appropriate lexical scoping for declarations in bodies of switch and try statements. Note that for statements still need work for declarations in for head. Added initializes for individual property level bindings in destructure binding

# Kam Kasravi (14 years ago)

Were 'const functions' ever accepted into the grammar? See WeakMap for an example.

# Mark S. Miller (14 years ago)

They were not. I will fix the WeakMap page when I have time.

# Kam Kasravi (14 years ago)

Ok, thanks Mark.