Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a44c26d2439a38be3ea8572d80d006ff218bf528
      
https://github.com/WebKit/WebKit/commit/a44c26d2439a38be3ea8572d80d006ff218bf528
  Author: Yijia Huang <[email protected]>
  Date:   2022-11-08 (Tue, 08 Nov 2022)

  Changed paths:
    A JSTests/stress/duplicated-callee-and-parameter.js
    M Source/JavaScriptCore/parser/Parser.h

  Log Message:
  -----------
  Fix SyntaxError thrown when parameter in array pattern and function have same 
name
https://bugs.webkit.org/show_bug.cgi?id=247433
rdar://102066019

Reviewed by Yusuke Suzuki.

When declaring a callee's name, it should be labeled as a function. In that
case, we can prevent false positives for duplicated callees and parameters.

* JSTests/stress/duplicated-callee-and-parameter.js: Added.
(x):
* Source/JavaScriptCore/parser/Parser.h:
(JSC::Scope::declareCallee):
(JSC::Scope::declareParameter):

Canonical link: https://commits.webkit.org/256478@main


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to