migrating `let' and `const'

Andy Wingo wingo at igalia.com
Tue Nov 15 07:17:23 PST 2011


Hello,

Do I have it right that the intention with `let' and `const' is to allow
them in strict mode?

SpiderMonkey appears to allow them, as does V8 with --harmony, but V8
without --harmony and JSC both abort on `const' in strict mode.

Likewise, none of the major engines abort on `const' in non-strict mode.
In non-strict mode in browsers, which semantics should `const' have?
The old one, with hoisting?

Regards,

Andy


More information about the es-discuss mailing list