src: fix ContextifyContext property definer interception result by legendecas · Pull Request #63549 · nodejs/node · GitHub
Skip to content

src: fix ContextifyContext property definer interception result#63549

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
legendecas:vm-intercept-52634
May 27, 2026
Merged

src: fix ContextifyContext property definer interception result#63549
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
legendecas:vm-intercept-52634

Conversation

@legendecas

Copy link
Copy Markdown
Member

This fixes that when defining a property, a definer callback
like a proxy handler would be invoked twice when the property
is writable.

Fixes: #52634

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. vm Issues and PRs related to the vm subsystem. labels May 24, 2026
Signed-off-by: Chengzhong Wu <legendecas@gmail.com>
@legendecas legendecas force-pushed the vm-intercept-52634 branch from 8baf29f to 3fb03c6 Compare May 24, 2026 21:52
@codecov

codecov Bot commented May 24, 2026

Copy link
Copy Markdown

@addaleax addaleax added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels May 26, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label May 26, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@legendecas legendecas added the commit-queue Add this label to land a pull request using GitHub Actions. label May 27, 2026
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label May 27, 2026
@nodejs-github-bot nodejs-github-bot merged commit 8257091 into nodejs:main May 27, 2026
77 checks passed
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@legendecas legendecas deleted the vm-intercept-52634 branch May 27, 2026 15:13
aduh95 pushed a commit that referenced this pull request May 28, 2026
Signed-off-by: Chengzhong Wu <legendecas@gmail.com>
PR-URL: #63549
Fixes: #52634
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
aduh95 pushed a commit that referenced this pull request May 30, 2026
Signed-off-by: Chengzhong Wu <legendecas@gmail.com>
PR-URL: #63549
Fixes: #52634
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
@Renegade334 Renegade334 added the baking-for-lts PRs that need to wait before landing in a LTS release. label Jun 2, 2026
nodejs-github-bot pushed a commit that referenced this pull request Jun 11, 2026
Signed-off-by: Brian Meek <55990082+brianathere@users.noreply.github.com>
PR-URL: #63742
Fixes: #63739
Refs: #63549
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
aduh95 pushed a commit that referenced this pull request Jun 18, 2026
Signed-off-by: Brian Meek <55990082+brianathere@users.noreply.github.com>
PR-URL: #63742
Fixes: #63739
Refs: #63549
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
legendecas added a commit to legendecas/node that referenced this pull request Jun 22, 2026
This fixes a long-standing issue that
`ContextifyContext::PropertyDefinerCallback` incorrectly copies the
`const PropertyDescriptor& desc`, assigning value to be `undefined` when
the no value present on the `PropertyDescriptor`.

This is revealed after nodejs#63549 because
returning `kYes` tells V8 that the definer handled it, and V8 no longer
fixes it up.

Signed-off-by: Chengzhong Wu <cwu631@bloomberg.net>
legendecas added a commit to legendecas/node that referenced this pull request Jun 22, 2026
This fixes a long-standing issue that
`ContextifyContext::PropertyDefinerCallback` incorrectly copies the
`const PropertyDescriptor& desc`, assigning value to be `undefined` when
no value present on the `PropertyDescriptor`.

This is revealed after nodejs#63549 because
returning `kYes` tells V8 that the definer handled it, and V8 no longer
fixes it up.

Signed-off-by: Chengzhong Wu <cwu631@bloomberg.net>
luanmuniz pushed a commit to luanmuniz/node that referenced this pull request Jun 25, 2026
Signed-off-by: Brian Meek <55990082+brianathere@users.noreply.github.com>
PR-URL: nodejs#63742
Fixes: nodejs#63739
Refs: nodejs#63549
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. baking-for-lts PRs that need to wait before landing in a LTS release. c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. vm Issues and PRs related to the vm subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ContextifyContext::PropertyDefinerCallback() never intercepts the request

5 participants