[X2Go-Commits] [pale-moon] 233/294: Specify an explicit offset when reporting an error for a for-of loop whose target is an expression that begins with 'let'.

git-admin at x2go.org git-admin at x2go.org
Sat Apr 27 08:58:21 CEST 2019


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch upstream/28.5.0
in repository pale-moon.

commit f4fec66e094281465ce1d143e00b0c9bda4863af
Author: wolfbeast <mcwerewolf at wolfbeast.com>
Date:   Sat Apr 6 10:47:27 2019 +0200

    Specify an explicit offset when reporting an error for a for-of loop
    whose target is an expression that begins with 'let'.
---
 js/src/frontend/Parser.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/js/src/frontend/Parser.cpp b/js/src/frontend/Parser.cpp
index 3a5b5d6..3f793ff 100644
--- a/js/src/frontend/Parser.cpp
+++ b/js/src/frontend/Parser.cpp
@@ -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;
     }
 

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/pale-moon.git


More information about the x2go-commits mailing list