Title: Add a direct API for setting object prototype in `node_api.h` · Issue #60670 · nodejs/node · GitHub
Open Graph Title: Add a direct API for setting object prototype in `node_api.h` · Issue #60670 · nodejs/node
X Title: Add a direct API for setting object prototype in `node_api.h` · Issue #60670 · nodejs/node
Description: What is the problem this feature will solve? See nodejs/node-addon-api#1691 What is the feature you are proposing to solve the problem? Create a new API function napi_set_prototype in node_api.h to provide a NAPI equivalent for v8::Objec...
Open Graph Description: What is the problem this feature will solve? See nodejs/node-addon-api#1691 What is the feature you are proposing to solve the problem? Create a new API function napi_set_prototype in node_api.h to...
X Description: What is the problem this feature will solve? See nodejs/node-addon-api#1691 What is the feature you are proposing to solve the problem? Create a new API function napi_set_prototype in node_api.h to...
Opengraph URL: https://github.com/nodejs/node/issues/60670
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add a direct API for setting object prototype in `node_api.h`","articleBody":"### What is the problem this feature will solve?\n\nSee nodejs/node-addon-api#1691\n\n### What is the feature you are proposing to solve the problem?\n\nCreate a new API function `napi_set_prototype` in `node_api.h` to provide a NAPI equivalent for `v8::Object::SetPrototype`.\n\n### What alternatives have you considered?\n\n_No response_","author":{"url":"https://github.com/ruochenjia","@type":"Person","name":"ruochenjia"},"datePublished":"2025-11-10T19:58:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/60670/node/issues/60670"}
| 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:9fcab79c-6580-4ef1-9589-f89a1c7523a9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ECEC:2EEF02:E6C9F7:134A83A:6A4C5EC9 |
| html-safe-nonce | 3e7b0e83d9d23d883f55384be300d17968ac0c1719c0c1615046895e05548c1a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQ0VDOjJFRUYwMjpFNkM5Rjc6MTM0QTgzQTo2QTRDNUVDOSIsInZpc2l0b3JfaWQiOiIyMTUzODI2NTIxOTEwNjMyMTM3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | db7935b530ecb28b39b6289cf30fc6eefb03a52093f712d375986f9f36f6a0b8 |
| hovercard-subject-tag | issue:3609497429 |
| 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/60670/issue_layout |
| twitter:image | https://opengraph.githubassets.com/63726717dc72271dfcabf5045c188a0cf00dbb17c9c2195cbda1299409668e6c/nodejs/node/issues/60670 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/63726717dc72271dfcabf5045c188a0cf00dbb17c9c2195cbda1299409668e6c/nodejs/node/issues/60670 |
| og:image:alt | What is the problem this feature will solve? See nodejs/node-addon-api#1691 What is the feature you are proposing to solve the problem? Create a new API function napi_set_prototype in node_api.h to... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ruochenjia |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| 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 | 14099438da5379150f15a2892474c7c7e6c0e55e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width