Shepherd.js - Implementing Harmony modules for today's browsers

Rick Waldron waldron.rick at gmail.com
Thu Apr 19 12:46:39 PDT 2012


On Thu, Apr 19, 2012 at 9:11 AM, Russell Leggett
<russell.leggett at gmail.com>wrote:

> [snip]
> Support is coming. I look at it this way. Some day relatively soon, ES6
> modules will be in node. Soon after that they will start showing up in
> browsers. Over the course of the next year, I bet you'll see module support
> in at least firefox and chrome.
>

In Chrome Canary, with Harmony flag enabled...

module Foo {}

(Foo in this); // true

:)

But, Foo is still undefined.

Rick





>  If you set your sights on full modules now, you'll have code that doesn't
> need to be rewritten a year from now. A polyfill will happen, do you want
> to write it?
>
> - Russ
> [snip]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120419/01ea7278/attachment.html>


More information about the es-discuss mailing list