Toplevel 'let' binding can be left permanently uninitialized after an error

T.J. Crowder tj.crowder at farsightsoftware.com
Tue Nov 28 19:44:16 UTC 2017


On Tue, Nov 28, 2017 at 7:31 PM, Joseph <pacerier at gmail.com> wrote:
>
> Re "x is irreparably hosed in your REPL"; you can still use it in
subscope, eg <{let x=1;console.log(1)}>.

Well yes, of course you can. You can also use it in nested functions. Or
even whole other scripts, which is nearly as relevant.

-- T.J. Crowder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20171128/81d3d95e/attachment-0001.html>


More information about the es-discuss mailing list