Standard modules - concept or concrete?

Kevin Smith zenparsing at gmail.com
Thu Jun 20 07:26:06 PDT 2013


I wonder, though, if this might create issues for polyfilling:

    // polyfillz.js
    if (this.Promise ===  void 0)
        this.Promise = function() { ... }

    // main.js
    import "polyfillz.js";
    new Promise();

This would refuse to compile, right?  We'd have to introduce all of our
polyfills in a separate (previous) compilation/execution cycle.

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


More information about the es-discuss mailing list