Standard modules - concept or concrete?

Kevin Smith zenparsing at gmail.com
Wed Jun 19 08:37:41 PDT 2013


OK - I see it on the wiki here:

"Compilation resolves and validates all variable definitions and references"

It still seems odd to me that we're going to check a dynamic object (the
global object) at link-time for references.  What if the global object is
changed after the linking pass, but before the module executes?  Does the
variable reference still point to the old thing?

    // Before linking, window.bar = "before"

    // foo.js
    bar = "after";

    // main.js
    import "foo";
    console.log(bar); // "before"?


Thanks,

{ Kevin }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130619/cb95b6d5/attachment.html>


More information about the es-discuss mailing list