-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
inspector: mark v8-inspector.h as NODE_WANT_INTERNALS #22415
Comments
+1. Since the intent was for the header to be available to the Node, but not native modules, this makes sense to me. I don't suspect there is any user-space use of |
Just saw this now. Awesome. |
Hi, this affected my project isolated-vm. I'm invoking v8's isolate API directly to create pure JS isolated sandboxes which can be accessed via nodejs. My project includes support for the inspector so I do need these header files. For now I'll be forced to copy these files to my repository and distribute them on npm to keep my build operational. With regards to the original problem of the ticket, that ABI compatibility is slowing down the nodejs team, I would like to point out that ABI compatibility is not an issue for my project. Perhaps the build process could stick these in a |
I run into this problem too. Node.js can actually act as a v8 runtime. Without the two headers, you can't play with the inspector api. |
Is your feature request related to a problem? Please describe.
V8 Inspector exposes API for Node.js. This API should be implemented by V8 embedder to enable inspector features. v8-inspector.h contains the most significant part of this API. Sometimes we need to fix some problems / backport some features which require little changes in v8-inspector.h file.
Right now any changes like this are blocked since we need to maintain ABI compatibility for all header files inside v8/includes folder.
Describe the solution you'd like
We can mark v8-inspector.h header with
NODE_WANT_INTERNALS
macro or with some intermediate more generic macro that in node will be synonym ofNODE_WANT_INTERNALS
.If some methods or classes may be useful for native modules, we can expose them using separate header.
The text was updated successfully, but these errors were encountered: