Toplevel 'let' binding can be left permanently uninitialized after an error
T.J. Crowder
tj.crowder at farsightsoftware.com
Tue Nov 28 17:30:25 UTC 2017
On Tue, Nov 28, 2017 at 5:05 PM, Joseph <pacerier at gmail.com> wrote:
> You can still do `{x}`.
Can you expand on that? It doesn't seem to me you can. I mean, if even `x =
42;` won't work (https://jsfiddle.net/tw3ohac6/), I fail to see how
anything else using `x` would work, including `{x}` (
https://jsfiddle.net/tw3ohac6/1/, https://jsfiddle.net/tw3ohac6/2/). `x` is
permanently in the TDZ as far as I can tell.
-- T.J. Crowder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20171128/8d2314a1/attachment.html>
More information about the es-discuss
mailing list