Skip to content

inspect: resolve property values live after the mutation-safe key snapshot - #37178

Closed
robobun wants to merge 6 commits into
mainfrom
farm/37027076/inspect-live-values
Closed

robobun wants to merge 6 commits into
mainfrom
farm/37027076/inspect-live-values

inspect: resolve a deleted shadowing key through the prototype chain

0b6d0ed
Select commit
Loading
Failed to load commit list.
Claude / Claude Code Review completed Aug 8, 2026 in 16m 27s

Code review found 1 potential issue

Found 2 candidates, confirmed 1. See review comments for details.

Details

Severity Count
🔴 Important 0
🟡 Nit 1
🟣 Pre-existing 0
Severity File:Line Issue
🟡 Nit src/jsc/bindings/bindings.cpp:5494-5502 Fast-path fallback invokes prototype accessor when shadowing own key is deleted mid-format; slow path shows [Getter]

Annotations

Check warning on line 5502 in src/jsc/bindings/bindings.cpp

See this annotation in the file changed.

@claude claude / Claude Code Review

Fast-path fallback invokes prototype accessor when shadowing own key is deleted mid-format; slow path shows [Getter]

When the deleted own key is shadowing a **prototype accessor** (rather than a data property), the fast-path fallback at `getIfPropertyExists` performs a full `[[Get]]` and *invokes* the getter — printing its return value and firing side effects — while the slow path checks `slot.isAccessor()` and prints `[Getter]` without calling it. Consider routing the fallback through `getPropertySlot` + `isAccessor()` like the slow path, and adding an accessor-prototype variant to the new "agrees across form