Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Contribute to GitLab
  • Sign in / Register
V
V8
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Linshizhi
  • V8
  • Repository

Switch branch/tag
  • v8
  • test
  • mjsunit
  • harmony
  • optional-chaining-this.js
Find file
BlameHistoryPermalink
  • Shu-yu Guo's avatar
    Fix the receiver when calling parenthesized optional chains · 80fd0b3d
    Shu-yu Guo authored Nov 27, 2019
    Correctly passing the receiver depends on the Call AST node's type.
    Calling a parenthesized optional chain expression is parsed as a Call of
    an OptionalChain of a Property.  Currently the computation of the type
    does not take optional chains of property loads into consideration, so
    calls of parenthesized optional chain expressions always get passed an
    undefined receiver.
    
    Bug: v8:10024
    Change-Id: I904b0eeca2df30160def674fb32adf821403aef9
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1938571Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
    Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
    Commit-Queue: Shu-yu Guo <syg@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#65252}
    80fd0b3d
optional-chaining-this.js 782 Bytes
EditWeb IDE

Replace optional-chaining-this.js

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.