We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
async function g() { // note: not a generator function yield 42; // same error message without the semicolon }
Raises unexpected 'yield' keyword in ESM mode but expecting ';' in classic mode.
unexpected 'yield' keyword
expecting ';'
It's not strictly wrong because yield is a valid identifier in classic mode (you get the same error with yolo 42) but it's unhelpful.
yield
yolo 42
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Raises
unexpected 'yield' keyword
in ESM mode butexpecting ';'
in classic mode.It's not strictly wrong because
yield
is a valid identifier in classic mode (you get the same error withyolo 42
) but it's unhelpful.The text was updated successfully, but these errors were encountered: