Implement the Top-level await proposal
Categories
(Core :: JavaScript Engine, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox85 | --- | fixed |
People
(Reporter: alex.fdm, Assigned: yulia)
References
(Blocks 2 open bugs, )
Details
(Keywords: dev-doc-complete)
Attachments
(15 files, 6 obsolete files)
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details |
The proposal is currently in Stage 2.
Updated•6 years ago
|
Updated•6 years ago
|
Reporter | ||
Updated•5 years ago
|
Comment 1•5 years ago
|
||
See also the integration in HTML (https://github.com/whatwg/html/pull/4352) and Service Workers (https://github.com/w3c/ServiceWorker/issues/1407).
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 2•4 years ago
|
||
Assignee | ||
Comment 3•4 years ago
|
||
This still needs to be cleaned up
Assignee | ||
Comment 4•4 years ago
|
||
This change introduces an async emitter that can be shared by FunctionEmitter and module code.
Assignee | ||
Comment 5•4 years ago
|
||
Depends on D93487
Assignee | ||
Comment 6•4 years ago
|
||
Introduces modules that can be suspended.
Assignee | ||
Comment 7•4 years ago
|
||
Depends on D93523
Assignee | ||
Comment 8•4 years ago
|
||
Depends on D93524
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Comment 9•4 years ago
|
||
Depends on D83773
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Comment 10•4 years ago
|
||
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Comment 11•4 years ago
|
||
Depends on D93524
Assignee | ||
Comment 12•4 years ago
|
||
Depends on D95883
Assignee | ||
Comment 13•4 years ago
|
||
Depends on D95884
Assignee | ||
Comment 14•4 years ago
|
||
Depends on D93530
Updated•4 years ago
|
Assignee | ||
Comment 15•4 years ago
|
||
Depends on D93530
Assignee | ||
Comment 16•4 years ago
|
||
Depends on D96066
Assignee | ||
Comment 17•4 years ago
|
||
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Comment 18•4 years ago
|
||
Depends on D95885
Assignee | ||
Comment 19•4 years ago
|
||
Add tests behind the TLA flag;
Depends on D97181
Updated•4 years ago
|
Assignee | ||
Comment 20•4 years ago
|
||
Depends on D95885
Assignee | ||
Comment 21•4 years ago
|
||
Add tests behind the TLA flag;
Depends on D97184
Assignee | ||
Comment 22•4 years ago
|
||
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Comment 23•4 years ago
|
||
Comment 24•4 years ago
|
||
Backed out 15 changesets (bug 1519100) for wpt leaks.
Backout link: https://hg.mozilla.org/integration/autoland/rev/3c3198bf2d4a541679012a100af53228a9c608d7
Failure log: https://treeherder.mozilla.org/logviewer?job_id=323343568&repo=autoland&lineNumber=21759
Comment 25•4 years ago
|
||
Yulia: hooray for top-level await
! I'm curious: will xpcshell
have top-level await
? I've actually wanted that in the very recent past.
Assignee | ||
Comment 26•4 years ago
|
||
Hi Nick:
So.. from my understanding xpcshell currently only compiles to global scripts. Top-Level await is restricted to modules. These are two different parse goals, so for now Top-Level await won't work for xpcshell, at least to my knowledge.
It should be possible to enable it, but I would need to talk to someone who knows more about xpcshell. You can use it in the js-shell with the flag --enable-top-level-await
and -m
for a module goal.
Comment 27•4 years ago
|
||
(In reply to Yulia Startsev from comment #26)
Hi Nick:
So.. from my understanding xpcshell currently only compiles to global scripts. Top-Level await is restricted to modules. These are two different parse goals, so for now Top-Level await won't work for xpcshell, at least to my knowledge.
Fascinating, TIL. Thanks, Yulia!
Comment 28•4 years ago
|
||
Assignee | ||
Comment 29•4 years ago
|
||
eh, nuts that wasn't what I wanted to do... revert incoming..
Comment 30•4 years ago
|
||
Backed out as requested: https://hg.mozilla.org/integration/autoland/rev/ca855dab98dbe9dec01e236125b6ed557fd9637d
Comment 31•4 years ago
|
||
Comment 32•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/6bdc2b79fa26
https://hg.mozilla.org/mozilla-central/rev/ff6fd518d035
https://hg.mozilla.org/mozilla-central/rev/c11b43616a2f
https://hg.mozilla.org/mozilla-central/rev/d7f3a9ac1933
https://hg.mozilla.org/mozilla-central/rev/96c7515c8a1b
https://hg.mozilla.org/mozilla-central/rev/aa28d891047e
https://hg.mozilla.org/mozilla-central/rev/406c05b73d5b
https://hg.mozilla.org/mozilla-central/rev/18bbeedf4c2e
https://hg.mozilla.org/mozilla-central/rev/740f71543c0e
https://hg.mozilla.org/mozilla-central/rev/f9bea80a5393
https://hg.mozilla.org/mozilla-central/rev/1ffd544310f6
https://hg.mozilla.org/mozilla-central/rev/1f8c2419d053
https://hg.mozilla.org/mozilla-central/rev/76a1c42b797e
https://hg.mozilla.org/mozilla-central/rev/f3a874302dba
https://hg.mozilla.org/mozilla-central/rev/7d9c82add62d
Assignee | ||
Updated•4 years ago
|
Comment 33•4 years ago
|
||
Rumyra got this new functionality documented on MDN! See https://github.com/mdn/content/issues/297#issuecomment-762767516 for descriptions of what she did.
Please let us know if you notice anything that needs updating, or can think of anything else you'd like to see added.
Reporter | ||
Updated•3 years ago
|
Updated•2 years ago
|
Description
•