Title: ContextifyContext::PropertyDefinerCallback() never intercepts the request · Issue #52634 · nodejs/node · GitHub
Open Graph Title: ContextifyContext::PropertyDefinerCallback() never intercepts the request · Issue #52634 · nodejs/node
X Title: ContextifyContext::PropertyDefinerCallback() never intercepts the request · Issue #52634 · nodejs/node
Description: Version v22.0.0-pre Platform No response Subsystem No response What steps will reproduce the bug? While migrating Node-ci to a new V8 interceptors Api (https://crrev.com/c/5353146, v8#180) I noticed that ContextifyContext::PropertyDefine...
Open Graph Description: Version v22.0.0-pre Platform No response Subsystem No response What steps will reproduce the bug? While migrating Node-ci to a new V8 interceptors Api (https://crrev.com/c/5353146, v8#180) I notice...
X Description: Version v22.0.0-pre Platform No response Subsystem No response What steps will reproduce the bug? While migrating Node-ci to a new V8 interceptors Api (https://crrev.com/c/5353146, v8#180) I notice...
Opengraph URL: https://github.com/nodejs/node/issues/52634
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ContextifyContext::PropertyDefinerCallback() never intercepts the request","articleBody":"### Version\r\n\r\nv22.0.0-pre\r\n\r\n### Platform\r\n\r\n_No response_\r\n\r\n### Subsystem\r\n\r\n_No response_\r\n\r\n### What steps will reproduce the bug?\r\n\r\nWhile migrating Node-ci to a new V8 interceptors Api (https://crrev.com/c/5353146, https://github.com/v8/node/pull/180) I noticed that `ContextifyContext::PropertyDefinerCallback()` never reports that it has intercepted the request.\r\nIt should have called `args.GetReturnValue()-\u003eSetUndefined();` in `define_prop_on_sandbox` instead.\r\n\r\nFixing this issue exposes another one - `ContextifyContext::PropertyEnumeratorCallback()` never returns symbol properties because `ctx-\u003esandbox()-\u003eGetPropertyNames(ctx-\u003econtext())` skips symbols. There's a `GetPropertyNames()` overload with a `PropertyFilter` parameter which can be configured to not skip symbols.\r\n\r\n### How often does it reproduce? Is there a required condition?\r\n\r\n_No response_\r\n\r\n### What is the expected behavior? Why is that the expected behavior?\r\n\r\n_No response_\r\n\r\n### What do you see instead?\r\n\r\nn/a\r\n\r\n### Additional information\r\n\r\n_No response_","author":{"url":"https://github.com/isheludko","@type":"Person","name":"isheludko"},"datePublished":"2024-04-22T11:03:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/52634/node/issues/52634"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7c5002e7-88e5-de94-a196-a231b336c288 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DD36:327B79:2B651A0:3D7917A:6A4CFC10 |
| html-safe-nonce | 65c4993bf2e0f28698ff0efb87251744672cb45cd16f38b1c99df84c4d34cb52 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDM2OjMyN0I3OToyQjY1MUEwOjNENzkxN0E6NkE0Q0ZDMTAiLCJ2aXNpdG9yX2lkIjoiNDM3ODIxMjI0MTExNjM1NDcyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | da9cd50a46d302ceeaf3aaa8a3a221dd696ad64eb70cdd529c0b17a03e0b8c4f |
| hovercard-subject-tag | issue:2256244436 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/52634/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7548984dae5809fea3e86f895c2b7031d31c37ce2aa49091ed4bd7595c265a98/nodejs/node/issues/52634 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7548984dae5809fea3e86f895c2b7031d31c37ce2aa49091ed4bd7595c265a98/nodejs/node/issues/52634 |
| og:image:alt | Version v22.0.0-pre Platform No response Subsystem No response What steps will reproduce the bug? While migrating Node-ci to a new V8 interceptors Api (https://crrev.com/c/5353146, v8#180) I notice... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | isheludko |
| hostname | github.com |
| expected-hostname | github.com |
| None | 31e4db13a9e20081f2fac78f441659a6576e582bbb15e153f9c7fb6473aa29f5 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8307e9ba117a26e92a64fb1daf085d795a6552ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width