The Wayback Machine - https://web.archive.org/web/20210124231647/https://github.com/nodejs/nan/pull/792
Skip to content
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

Add NAN_MODULE_WORKER_ENABLED macro as a replacement for NAN_MODULE that supports multiple workers #792

Merged
merged 2 commits into from Jul 2, 2018

Conversation

@rpetrich
Copy link
Contributor

@rpetrich rpetrich commented Jul 1, 2018

Uses the named symbol node_register_module_v## variant of registration that works to support loading in multiple workers on node 10.5 with --experimental-workers.

This may need updating in the future if/when node requires native modules to explicitly opt in to multiple isolate support.

…hat supports multiple workers

Uses the named symbol node_register_module_v## variant of registration that works on node 10.5 with --experimental-workers. May need updating in the future if node requires native modules to explicitly opt in to multiple isolate support.
nan.h Outdated
#if NODE_MAJOR_VERSION >= 10 || \
NODE_MAJOR_VERSION == 9 && NODE_MINOR_VERSION >= 3
#define NAN_CONCAT(a, b) NAN_CONCAT_HELPER(a, b)
#define NAN_CONCAT_HELPER(a, b) a##b

This comment has been minimized.

@kkoopa

kkoopa Jul 1, 2018
Collaborator

I would prefer these two to be defined regardless of the Node version, since they effectively become public.

…ck so that it's consistently declared
@kkoopa kkoopa merged commit b058fb0 into nodejs:master Jul 2, 2018
1 check passed
1 check passed
Travis CI - Pull Request Build Passed
Details
@kkoopa
Copy link
Collaborator

@kkoopa kkoopa commented Jul 2, 2018

Thank you.

yuche added a commit to yuche/node-xxhash that referenced this pull request Aug 5, 2020
yuche added a commit to yuche/node-xxhash that referenced this pull request Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants