-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
difficulty:easyIssues that should be easy to fix. Resolve me on the train to work!Issues that should be easy to fix. Resolve me on the train to work!lang:javascriptIssues affecting JSIssues affecting JSlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.type:testsIssues about tests that are not correct, should be added, or similarIssues about tests that are not correct, should be added, or similar
Description
yield = 3
causes an error: Unexpected reserved word 'yield'
(playground), which should only happen in modules. In non-module code, yield
is an acceptable identifier (spec). Prettier 2.2.1 handles this better thanks to the error recovery (playground).
Originally posted by @thorn0 in #10446 (comment)
Metadata
Metadata
Assignees
Labels
difficulty:easyIssues that should be easy to fix. Resolve me on the train to work!Issues that should be easy to fix. Resolve me on the train to work!lang:javascriptIssues affecting JSIssues affecting JSlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.type:testsIssues about tests that are not correct, should be added, or similarIssues about tests that are not correct, should be added, or similar