[runtime] Make sure lookup keys in SetPrototypeProperties are names or numbers [v8/v8 : main]

0 views
Skip to first unread message

Toon Verwaest (Gerrit)

unread,
Nov 18, 2025, 10:59:32 AM (22 hours ago) Nov 18
to Raphael Herouart, Leszek Swirski, V8 LUCI CQ, v8-re...@googlegroups.com
Attention needed from Leszek Swirski and Raphael Herouart

Toon Verwaest added 1 comment

File src/runtime/runtime-literals.cc
Line 769, Patchset 1 (Latest): if (!IsName(*key) && !IsNumber(*key)) {
Toon Verwaest . unresolved

I don't think this should happen given how this is used. What about making this a `CHECK`.

Open in Gerrit

Related details

Attention is currently required from:
  • Leszek Swirski
  • Raphael Herouart
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: v8/v8
Gerrit-Branch: main
Gerrit-Change-Id: I0d4f67d211cd503bb535d62afacee14862e9fe19
Gerrit-Change-Number: 7159852
Gerrit-PatchSet: 1
Gerrit-Owner: Raphael Herouart <rher...@chromium.org>
Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
Gerrit-Reviewer: Raphael Herouart <rher...@chromium.org>
Gerrit-Reviewer: Toon Verwaest <verw...@chromium.org>
Gerrit-Attention: Raphael Herouart <rher...@chromium.org>
Gerrit-Attention: Leszek Swirski <les...@chromium.org>
Gerrit-Comment-Date: Tue, 18 Nov 2025 15:59:25 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Raphael Herouart (Gerrit)

unread,
Nov 18, 2025, 11:12:49 AM (21 hours ago) Nov 18
to Toon Verwaest, Leszek Swirski, V8 LUCI CQ, v8-re...@googlegroups.com
Attention needed from Leszek Swirski and Toon Verwaest

Raphael Herouart added 1 comment

File src/runtime/runtime-literals.cc
Line 769, Patchset 1: if (!IsName(*key) && !IsNumber(*key)) {
Toon Verwaest . resolved

I don't think this should happen given how this is used. What about making this a `CHECK`.

Raphael Herouart

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Leszek Swirski
  • Toon Verwaest
Submit Requirements:
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: v8/v8
    Gerrit-Branch: main
    Gerrit-Change-Id: I0d4f67d211cd503bb535d62afacee14862e9fe19
    Gerrit-Change-Number: 7159852
    Gerrit-PatchSet: 3
    Gerrit-Owner: Raphael Herouart <rher...@chromium.org>
    Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
    Gerrit-Reviewer: Raphael Herouart <rher...@chromium.org>
    Gerrit-Reviewer: Toon Verwaest <verw...@chromium.org>
    Gerrit-Attention: Toon Verwaest <verw...@chromium.org>
    Gerrit-Attention: Leszek Swirski <les...@chromium.org>
    Gerrit-Comment-Date: Tue, 18 Nov 2025 16:12:44 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Toon Verwaest <verw...@chromium.org>
    unsatisfied_requirement
    open
    diffy

    Toon Verwaest (Gerrit)

    unread,
    5:32 AM (3 hours ago) 5:32 AM
    to Raphael Herouart, Leszek Swirski, V8 LUCI CQ, v8-re...@googlegroups.com
    Attention needed from Leszek Swirski and Raphael Herouart

    Toon Verwaest added 1 comment

    File src/runtime/runtime-literals.cc
    Line 769, Patchset 3 (Latest): CHECK(IsName(*key) || IsNumber(*key));
    Toon Verwaest . unresolved

    I don't even think you're supposed to support Numbers? Don't you only support InternalizedStrings that aren't indices?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Leszek Swirski
    • Raphael Herouart
    Submit Requirements:
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: v8/v8
      Gerrit-Branch: main
      Gerrit-Change-Id: I0d4f67d211cd503bb535d62afacee14862e9fe19
      Gerrit-Change-Number: 7159852
      Gerrit-PatchSet: 3
      Gerrit-Owner: Raphael Herouart <rher...@chromium.org>
      Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
      Gerrit-Reviewer: Raphael Herouart <rher...@chromium.org>
      Gerrit-Reviewer: Toon Verwaest <verw...@chromium.org>
      Gerrit-Attention: Raphael Herouart <rher...@chromium.org>
      Gerrit-Attention: Leszek Swirski <les...@chromium.org>
      Gerrit-Comment-Date: Wed, 19 Nov 2025 10:32:42 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      unsatisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages