Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: bf9506016a8f3e411bf6dcb62eae9177c56452c2
https://github.com/WebKit/WebKit/commit/bf9506016a8f3e411bf6dcb62eae9177c56452c2
Author: Alexey Shvayka <[email protected]>
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
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes