mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-26 17:28:38 +09:00
Specify an explicit offset when reporting an error for a for-of loop
whose target is an expression that begins with 'let'.
This commit is contained in:
parent
e9b63ee1fe
commit
de1ec588d2
1 changed files with 1 additions and 1 deletions
|
|
@ -5536,7 +5536,7 @@ Parser<ParseHandler>::forHeadStart(YieldHandling yieldHandling,
|
|||
//
|
||||
// See ES6 13.7.
|
||||
if (isForOf && letIsIdentifier) {
|
||||
reportWithNode(ParseError, false, *forInitialPart, JSMSG_LET_STARTING_FOROF_LHS);
|
||||
errorAt(exprOffset, JSMSG_LET_STARTING_FOROF_LHS);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue