[webkit-changes] [WebKit/WebKit] 90b95a: Access of import in LHS throws unexpected `SyntaxE...

Yusuke Suzuki noreply at github.com
Tue Nov 8 17:46:53 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 90b95a3284a6c0db6ed7a07874c107dbb08972a2
      https://github.com/WebKit/WebKit/commit/90b95a3284a6c0db6ed7a07874c107dbb08972a2
  Author: Yusuke Suzuki <ysuzuki at apple.com>
  Date:   2022-11-08 (Tue, 08 Nov 2022)

  Changed paths:
    A JSTests/stress/import-lhs.js
    M Source/JavaScriptCore/parser/Parser.cpp

  Log Message:
  -----------
  Access of import in LHS throws unexpected `SyntaxError`
https://bugs.webkit.org/show_bug.cgi?id=247497
rdar://102064736

Reviewed by Mark Lam.

We should clear LHS count when evaluation AssignmentExpression for arguments of import,
since these assignment does not make import call assignment target. This patch fixes it.

* Source/JavaScriptCore/parser/Parser.cpp:
(JSC::Parser<LexerType>::parseMemberExpression):

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




More information about the webkit-changes mailing list