-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JSC]
yield
is not a valid BindingIdentifier for AsyncGeneratorExpr…
…ession https://bugs.webkit.org/show_bug.cgi?id=263686 <rdar://problem/117497786> Reviewed by Justin Michaud. Representation of AsyncGeneratorExpression [1] contains BindingIdentifier production with [Yield] parameter, which throws an early error if it matches `yield` terminal [2]. This change implements above-mentioned error, with an error message similar to the case of `await` idenfitier, aligning JSC with V8 and SpiderMonkey. [1]: https://tc39.es/ecma262/#prod-AsyncGeneratorExpression [2]: https://tc39.es/ecma262/#sec-identifiers-static-semantics-early-errors * LayoutTests/js/parser-syntax-check-expected.txt: * LayoutTests/js/script-tests/parser-syntax-check.js: * JSTests/test262/expectations.yaml: Mark 1 test as passing. * Source/JavaScriptCore/parser/Parser.cpp: (JSC::Parser<LexerType>::parseFunctionInfo): * Source/JavaScriptCore/parser/ParserModes.h: (JSC::isGeneratorOrAsyncGeneratorWrapperParseMode): Extract a helper that will most likely be needed elsewhere. Canonical link: https://commits.webkit.org/269801@main
- Loading branch information
Alexey Shvayka
committed
Oct 26, 2023
1 parent
fdd2e5c
commit d5e6b96
Showing
5 changed files
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters