[webkit-changes] [WebKit/WebKit] bf9506: [JSC] SyntaxError message for function declaration...
Commit Queue
noreply at github.com
Thu Sep 21 10:33:31 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: bf9506016a8f3e411bf6dcb62eae9177c56452c2
https://github.com/WebKit/WebKit/commit/bf9506016a8f3e411bf6dcb62eae9177c56452c2
Author: Alexey Shvayka <ashvayka at apple.com>
Date: 2023-09-21 (Thu, 21 Sep 2023)
Changed paths:
M LayoutTests/js/let-syntax-expected.txt
M LayoutTests/js/parser-syntax-check-expected.txt
M LayoutTests/js/script-tests/parser-syntax-check.js
M Source/JavaScriptCore/parser/Parser.cpp
Log Message:
-----------
[JSC] SyntaxError message for function declaration duplicating lexical one is misleading
https://bugs.webkit.org/show_bug.cgi?id=261863
<rdar://problem/115825419>
Reviewed by Keith Miller.
This change removes "in strict mode" from the error message since it occurs in any mode
(please see Scope::declareFunction() implementation).
* LayoutTests/js/let-syntax-expected.txt:
* LayoutTests/js/parser-syntax-check-expected.txt:
* LayoutTests/js/script-tests/parser-syntax-check.js:
* Source/JavaScriptCore/parser/Parser.cpp:
(JSC::Parser<LexerType>::parseFunctionDeclaration):
(JSC::Parser<LexerType>::parseAsyncFunctionDeclaration):
Canonical link: https://commits.webkit.org/268262@main
More information about the webkit-changes
mailing list