Repository navigation
Fix receiver extensibility checks in property sets - #1464
Merged
saghul merged 2 commits intoMay 10, 2026
Merged
Conversation
Delay the receiver extensibility check in JS_SetPropertyInternal2 until the set would create a new own property. This lets Receiver.[[GetOwnProperty]] run first, preserving TDZ ReferenceError precedence for module namespace super assignment and allowing writes to existing properties on non-extensible receivers.
jiang1997
force-pushed
the
fix/super-assignment-tdz-precedence
branch
from
May 9, 2026 08:45
17947c1 to
09ed586
Compare
jiang1997
marked this pull request as ready for review
May 9, 2026 08:45
bnoordhuis
approved these changes
May 10, 2026
bnoordhuis
left a comment
Contributor
There was a problem hiding this comment.
Thanks, LGTM but can you move the test to tests/test_language.js?
saghul
approved these changes
May 10, 2026
mochaaP
pushed a commit
to mcha-forks/quickjs
that referenced
this pull request
May 20, 2026
(cherry picked from commit a7f0b8a)
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR fixes property assignment by delaying the receiver extensibility check until the assignment would create a new own property.
This fixes two issues: