Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Incorrect Use of await Without async Declaration #10053

Closed
Arindam200 opened this issue Dec 16, 2023 · 2 comments
Closed

docs: Incorrect Use of await Without async Declaration #10053

Arindam200 opened this issue Dec 16, 2023 · 2 comments

Comments

@Arindam200
Copy link

Which application is this bug report for?

Documentation

Issue description

The provided code appears to use the await keyword without being within an async function. This might lead to unexpected behavior or errors.

Expected Behavior:

Code using await should be enclosed within an async function to ensure proper execution flow.

Actual Behavior:

The code uses await outside of an async function, which may lead to issues in certain environments.

image

Steps to Reproduce

  • Go to the Docs Website.
  • Review the provided code snippet.
  • Note the use of await outside of an async function.

Versions

  • Windows 11 (Version: 22H2)

Issue priority

Low (slightly annoying)

@Jiralite
Copy link
Member

You are describing CommonJS syntax. This is not CommonJS (old).

@Jiralite Jiralite closed this as not planned Won't fix, can't repro, duplicate, stale Dec 16, 2023
@Arindam200
Copy link
Author

Oh! okay! Thanks for that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants