Intent to ship: Javascript `export * as ns from "mod";` syntax

65 views
Skip to first unread message

tcam...@mozilla.com

unread,
Jul 16, 2020, 10:54:45 AM7/16/20
to
Hi,
In Firefox 80, we'll ship the `export * as ns from "mod";` JavaScript syntax.

*Bug: *https://bugzilla.mozilla.org/show_bug.cgi?id=1496852
*Standard: *https://github.com/tc39/ecma262/pull/1174
*Platform coverage: *All, no pref
*DevTools bug: *N/A.

*Other browsers: *Shipping in Chrome

*Testing: *https://github.com/tc39/test262/tree/master/test/language/module-code

*Use cases: *This change allows export-from syntax to export module namespace proxies on behalf of other modules. This provides more flexibility when composing modules using the
existing export-from syntax.

Code that previously looked like:
import * as ns from "mod";
export ns;

Can now be directly expressed as:
export * as ns from "mod";

*Secure contexts:* This is a JS language feature and is therefore present in all contexts.
Reply all
Reply to author
Forward
0 new messages