Skip to content

node-api: reword "implementation in an alternative VM" as implementable #59036

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

legendecas
Copy link
Member

@legendecas legendecas commented Jul 11, 2025

This should relieve contributors from forced to implement the new API in another VM. But the requirement should remain proving the new API to be implementable in another VM, and not specific to V8, allowing node-api to maintain ABI-stability.

Fixes: #58852

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/node-api
  • @nodejs/tsc

@nodejs-github-bot nodejs-github-bot added the doc Issues and PRs related to the documentations. label Jul 11, 2025
@legendecas legendecas added the node-api Issues and PRs related to the Node-API. label Jul 11, 2025
Copy link
Member

@mhdawson mhdawson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -37,7 +37,7 @@ please follow these principles and guidelines:

2. **Review and approval**
* A new API addition **must** be signed off by at least two Node-API team members.
* **Should** be implemented in at least one other VM implementation of Node.js.
* **Should** be implementable in at least one other VM implementation of Node.js.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"implementable" is very vague, even weasel wordy. Everything is implementable given enough time and effort.

Reductio ad ad absurdum: parsing and executing Python code isn't implemented in V8 but given a ground-up rewrite sure is implementable. Surely that's not what you mean though.

"Can be implemented in terms of available VM APIs" maybe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Issues and PRs related to the documentations. node-api Issues and PRs related to the Node-API.
Projects
Status: Need Triage
Development

Successfully merging this pull request may close these issues.

napi: stabilization criteria - requirement for alternative VM
5 participants