Skip to content

docs: clarify await usage in part 4b#4301

Open
jurajkapsz wants to merge 1 commit into
fullstack-hy2020:sourcefrom
jurajkapsz:patch-3
Open

docs: clarify await usage in part 4b#4301
jurajkapsz wants to merge 1 commit into
fullstack-hy2020:sourcefrom
jurajkapsz:patch-3

Conversation

@jurajkapsz

Copy link
Copy Markdown

The previous wording implied that await is only valid inside async functions. Clarify that this restriction applies to CommonJS, while ESM also supports top-level await.

The previous wording implied that `await` is only valid inside async functions. Clarify that this restriction applies to CommonJS, while ESM also supports top-level await.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant