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
  • regress
  • regress-12495.js
Find file
BlameHistoryPermalink
  • Tobias Tebbi's avatar
    [builtins] fix Torque fast-path for String.prototype.localeCompare · f33e68ad
    Tobias Tebbi authored Jan 13, 2022
    The fast path has an early return if the two inputs are the same
    object. However, this was missing the check that the receiver
    is not undefined required by the spec.
    This fixes it by first checking that the receiver is a string and
    only afterwards checking for reference equality.
    
    Bug: v8:12495
    Change-Id: I4c5fc80e09060b013c94b05bbc9da504ddbb5206
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3386602
    Auto-Submit: Tobias Tebbi <tebbi@chromium.org>
    Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
    Commit-Queue: Jakob Gruber <jgruber@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#78637}
    f33e68ad
regress-12495.js 493 Bytes
EditWeb IDE

Replace regress-12495.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.