detecting JS language mode for tools

Erik Arvidsson erik.arvidsson at gmail.com
Mon Jan 27 20:35:27 PST 2014


All browsers support non media types. Can we change the specs to match
reality

On Monday, January 27, 2014 10:24:49 PM, Brendan Eich <brendan at mozilla.com>
wrote:

> John Barton wrote:
> > Why can't <script type='module'> mean "If we see import/export/module
> > statements then we will will not evaluate the body synchronously."?
> > That way we avoid the jank with new code just as we do with two
> > parsing goals and yet we don't need two parsing goals.
>
> We could do this, but then refactoring from no-exports to exports, or
> no-imports to imports, changes order of execution. Surprising,
> undesirable without good reason (having one entry point to the grammar,
> or two instead of three if you count HTML event handlers, is not a good
> reason).
>
> Note also that type="module" does not fly, the type attribute wants a
> media type value.
>
> /be
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140128/2066dc14/attachment.html>


More information about the es-discuss mailing list