Skip to content

inspector: mark v8-inspector.h as NODE_WANT_INTERNALS #22415

Description

@alexkozy

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 of NODE_WANT_INTERNALS .
If some methods or classes may be useful for native modules, we can expose them using separate header.

Activity

  1. alexkozy commented on Aug 20, 2018

    @alexkozy
    MemberAuthor
  2. ofrobots commented on Aug 20, 2018

    @ofrobots
    Contributor

    +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 v8-inspector.h at this point.

  3. added
    inspectorIssues and PRs related to the V8 inspector protocol.
    on Aug 24, 2018
  4. hashseed commented on Aug 31, 2018

    @hashseed
    Member

    Just saw this now. Awesome.

  5. laverdet commented on Nov 19, 2018

    @laverdet
    Contributor

    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 nodejs-abi-unstable directory for me to pick up?

  6. gengjiawen commented on Jul 29, 2019

    @gengjiawen
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    inspectorIssues and PRs related to the V8 inspector protocol.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions