[Webkit-unassigned] [Bug 31813] Add support for block scope const
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Nov 30 03:35:32 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=31813
--- Comment #17 from Andy Wingo <wingo at igalia.com> 2011-11-30 03:35:32 PST ---
Good points regarding modules.
I'm going to work on this a bit more for the rest of the week and weekend (the GTK+ port has a hackfest). The tentative plan is:
1. New code is guarded by ENABLE(HARMONY)
2. There is also Options::harmony, and sub-option Options::harmonyBlockScoping, to allow runtime control, at least until things settle down
3. Adding an "extended" mode does not seem necessary yet, as the additions are not incompatible with old strict-mode code. In short, I plan to enable block-scoped `let' and `const' in strict-mode code when the global Options::harmonyBlockScoping flag is on.
4. We will have to add new binding modes, CONST_HARMONY and LET.
The actual implementation mechanism is likely to be a generalization of what's used by `catch' blocks, but I don't understand everything there yet.
Comments welcome.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list