Skip to content

Is well-known symbol the recommended way to build addon? #21291

Closed
@fs-eire

Description

@fs-eire

The change #18934 introduced a new interface enabling addon to initialize itself for multiple context using symbol node_register_module_v${NODE_MODULE_VERSION}.

However I didn't find much more information about this feature:
no related documents on https://nodejs.org/dist/latest-v10.x/docs/api/addons.html;
no examples ( only one simple test );
no related macro definition in node.h;
no n-api equivalent

I think the feature is still in experimental.. will it become a preferred and recommended way for addon, or it just going to be remove in some future version?

Metadata

Metadata

Assignees

No one assigned

    Labels

    addonsIssues and PRs related to native addons.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions