mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-20 14:17:30 +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.
|
// See ES6 13.7.
|
||||||
if (isForOf && letIsIdentifier) {
|
if (isForOf && letIsIdentifier) {
|
||||||
reportWithNode(ParseError, false, *forInitialPart, JSMSG_LET_STARTING_FOROF_LHS);
|
errorAt(exprOffset, JSMSG_LET_STARTING_FOROF_LHS);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue