2008/10/13 David-Sarah Hopwood <[EMAIL PROTECTED]>:
> This is slightly more complex than I'd hoped, but I think the guarantee
> that it is never possible to see uninitialized values of 'const' or 'let'
> variables is worth it.
What about the functions introduced in the let or const initializers?
Like the following 2 examples, where the first does access the
unitilized value but the second does not.
const x = (function() { return x; })()
versus
var f = null;
const x = (f = function() { return f ? x : null;})()
Regards, Igor
_______________________________________________
Es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss