Standard modules - concept or concrete?

Kevin Smith zenparsing at
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, = "before"

    // foo.js
    bar = "after";

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


{ Kevin }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list