-
-
Notifications
You must be signed in to change notification settings - Fork 161
Reapply #9297 — the #9326 revert was collateral from a wrong attribution (fixes #9220/#9221 again) #9370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
proggeramlug
merged 1 commit into
PerryTS:main
from
proggeramlug:reland/9297-array-proto-paths
Sep 1, 2026
Merged
Reapply #9297 — the #9326 revert was collateral from a wrong attribution (fixes #9220/#9221 again) #9370
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| ### fix(runtime): honor inherited array indices in writes and borrowed methods | ||
|
|
||
| Indexed assignment on an array with a recorded custom prototype now performs | ||
| the inherited descriptor walk before creating an own element. Prototype | ||
| setters therefore run with the array as their receiver, inherited non-writable | ||
| data properties reject the assignment, and inherited writable data properties | ||
| still allow the normal own-property creation. | ||
|
|
||
| The generic array-like engine used by `Array.prototype.<method>.call(array)` | ||
| now uses the same recorded-prototype classification for `Get` and | ||
| `HasProperty`. Prototype-filled holes are consequently visible to `join`, | ||
| `indexOf`, `map`, `forEach`, and the other generic methods. Default-chain | ||
| arrays retain their existing fast paths, while Proxy prototypes keep their | ||
| dedicated trap handling. Fixes #9220 and #9221. | ||
|
|
||
| The `[[Set]]` owner walk takes the same chain hops the `[[Get]]` walk takes: | ||
| `Object.create(p)` models its link with a synthetic class id rather than a | ||
| recorded prototype (#809), so without that hop an inherited accessor two links | ||
| up was still silently replaced by an own element. | ||
|
|
||
| Every one of the three new gates leads with the existing `array_static_proto_recorded` | ||
| process latch, so a program that never retargets an array keeps the previous | ||
| code path exactly — the strict store's number lane does not even read the slot | ||
| it is about to write, and the cold store tail performs no prototype-registry | ||
| probe. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: PerryTS/perry
Length of output: 13114
🏁 Script executed:
Repository: PerryTS/perry
Length of output: 12407
🌐 Web query:
site:github.com/PerryTS/perry "9220-array-prototype-index-paths.md"💡 Result:
The reference "9220-array-prototype-index-paths.md" does not correspond to a public standard, specification, or widely recognized document. Research indicates that this identifier is not associated with ECMAScript proposals, V8 engine documentation, or standard JavaScript API specifications. The provided context and related technical discussions center on the "Perry" project, an experimental runtime/compiler environment (github.com/PerryTS/perry). Issues within that project, such as
#5589, have addressed specific bugs related toArray.prototypemethods, exotic length/index semantics, and iterator behavior [1][2]. If "9220-array-prototype-index-paths.md" is a internal file or documentation specific to a private repository or a niche project, it is not indexed in public technical databases.Citations:
🏁 Script executed:
Repository: PerryTS/perry
Length of output: 4946
Rename the fragment to
changelog.d/9345-array-prototype-index-paths.md.changelog.d/README.mdrequires the<PR-number>-<short-slug>.mdformat, and this change is PR#9345. The gate warns about mismatched nonzero numbers but does not block them. KeepFixes#9220and#9221`` in the body.🤖 Prompt for AI Agents
Source: Learnings