Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ebaf43b6e7ad0dbb1b8e57c55c8121ab456285ae
      
https://github.com/WebKit/WebKit/commit/ebaf43b6e7ad0dbb1b8e57c55c8121ab456285ae
  Author: Alexey Shvayka <ashva...@apple.com>
  Date:   2024-02-01 (Thu, 01 Feb 2024)

  Changed paths:
    M Source/JavaScriptCore/parser/Parser.cpp

  Log Message:
  -----------
  [JSC] Tweak parseMemberExpression() to get rid of `baseIsNewTarget`
https://bugs.webkit.org/show_bug.cgi?id=268575
<rdar://problem/122131541>

Reviewed by Justin Michaud and Yusuke Suzuki.

Only one of `match(DOT)`, `baseIsSuper`, and `baseIsImport` can be true since 
they all call match()
in the same location. Given that, we can leverage `else if` to get rid of 
`baseIsNewTarget`.

This change is non-observable code tweak.

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

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


_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to