mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-24 16:17:29 +09:00
1336783 - Part 1: Rework on reserved word and remove TokenStream::KeywordIsName.
This commit is contained in:
parent
2d3bf3352c
commit
c1f6b0ff36
15 changed files with 851 additions and 722 deletions
|
|
@ -7057,7 +7057,7 @@ ParseFunction(ModuleValidator& m, ParseNode** fnOut, unsigned* line)
|
|||
TokenKind tk;
|
||||
if (!tokenStream.getToken(&tk, TokenStream::Operand))
|
||||
return false;
|
||||
if (tk != TOK_NAME && tk != TOK_YIELD)
|
||||
if (!TokenKindIsPossibleIdentifier(tk))
|
||||
return false; // The regular parser will throw a SyntaxError, no need to m.fail.
|
||||
|
||||
RootedPropertyName name(m.cx(), m.parser().bindingIdentifier(YieldIsName));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue