Implement export star default proposal
Categories
(Core :: JavaScript: Standard Library, enhancement, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox157 | --- | fixed |
People
(Reporter: dminor, Assigned: cemase)
References
(Blocks 1 open bug)
Details
(Keywords: dev-doc-complete)
Attachments
(2 external files)
We've had a request to prototype this, even though it's only at Stage 1.
Comment 1•2 months ago
|
||
Hi, I'm the champion of the proposal :) The spec text is at https://tc39.es/proposal-export-star-default/.
This was presented a few TC39 meetings ago, and there was strong enough support that I plan to propose it for Stage 2.7 soon. While the semantics of the change have a significant level of agreement, the main risk is around web compatibility.
I recently added an (approximate) UseCounter for this to V8, but I'm hoping to also have a flagged implementation in Firefox so that I can get a group of people to try it out and see if anybody finds a website that happens to break.
Updated•2 months ago
|
Updated•2 months ago
|
| Assignee | ||
Comment 2•2 months ago
|
||
| Assignee | ||
Comment 3•2 months ago
|
||
Right now export * from "mod" skips mod's default export; the spec
blocks it. This patch lets it through when the pref is on, by skipping the
"default" checks in GetExportedNames and ResolveExport so default is
treated like any other exported name (ambiguity checks included).
With the Pref off: There's no change in behavior.
I've also added jit-tests covering the basic case, missing default, ambiguous
default, and explicit re-export resolving the ambiguity.
Hi, Cornelius
Thanks for taking this bug.
I notice Nicolo has assigned this bug, next time if you want to take a bug with someone assigned,
you can ask if you can take over the bug.
We don't want to spend time doing on the same things.
| Assignee | ||
Comment 5•2 months ago
|
||
Hey Yoshi,
I'm working with Nic at Igalia. He's my mentor. He assigned himself so no one can take it before I get to it.
(In reply to Cornelius | CE student from comment #5)
I'm working with Nic at Igalia. He's my mentor. He assigned himself so no one can take it before I get to it.
Then you can just assign yourself to this bug.
| Assignee | ||
Comment 7•2 months ago
|
||
I can't edit the bug and he's on leave.
Updated•2 months ago
|
Comment 9•2 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/c4923eae3af2
https://hg.mozilla.org/mozilla-central/rev/40da41d07eb4
Comment 10•2 months ago
|
||
| bugherder | ||
Updated•1 month ago
|
Comment 11•1 month ago
|
||
FF157 MDN work for this can be tracked in https://github.com/mdn/content/issues/45699
Description
•