Skip to content

Top-level await integration - #4352

Merged
domenic merged 4 commits into
whatwg:masterfrom
littledan:top-level-await
Dec 10, 2020
Merged

Top-level await integration#4352
domenic merged 4 commits into
whatwg:masterfrom
littledan:top-level-await

Conversation

@littledan

@littledan littledan commented Feb 10, 2019

Copy link
Copy Markdown
Contributor

The purpose of this patch is to nail down how HTML would
adjust to the needs of top-level await. The relevant change is,
the module.Evaluate() method will return a Promise that resolves
when the module is ready, and this will be passed to
FinishDynamicImport to wait on before resolving the Promise it returns.
It doesn't seem like anyone else needs to wait for a module script
to "finish" evaluating besides dynamic import.

(See WHATWG Working Mode: Changes for more details.)


/infrastructure.html ( diff )
/references.html ( diff )
/webappapis.html ( diff )

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

addition/proposal New features or enhancements integration Better coordination across standards needed

Development

Successfully merging this pull request may close these issues.