Skip to content

napi: add __wasm32__ guards - #33597

Merged
devsnek merged 1 commit into
nodejs:masterfrom
devsnek:wasm-napi-headers
May 30, 2020
Merged

napi: add __wasm32__ guards#33597
devsnek merged 1 commit into
nodejs:masterfrom
devsnek:wasm-napi-headers

Conversation

@devsnek

Copy link
Copy Markdown
Member
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

@devsnekdevsnek added the node-api Issues and PRs related to the Node-API. label May 28, 2020
@nodejs-github-botnodejs-github-bot added the c++ Issues and PRs that require attention from people who are familiar with C++. label May 28, 2020
@devsnek
devsnekforce-pushed the wasm-napi-headers branch from 6b1c08f to 92f4cfeCompareMay 28, 2020 03:37
@devsnekdevsnek added the wasm Issues and PRs related to WebAssembly. label May 28, 2020
@BridgeARBridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label May 29, 2020
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

PR-URL: nodejs#33597
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
@devsnek
devsnekforce-pushed the wasm-napi-headers branch from 92f4cfe to b4ede54CompareMay 30, 2020 16:43
@devsnek
devsnek merged commit b4ede54 into nodejs:masterMay 30, 2020
@devsnek
devsnek deleted the wasm-napi-headers branch May 30, 2020 16:43
Comment threadsrc/node_api.h
napi_value exports) { \
return regfunc(env, exports); \
} \
EXTERN_C_END

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why is this change necessary? Just to have a predictable function name?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

right, the napi js impl calls this as a replacement for node's native_module registration api

codebytere pushed a commit that referenced this pull request Jun 18, 2020
PR-URL: #33597
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
@codebyterecodebytere mentioned this pull request Jun 28, 2020
codebytere pushed a commit that referenced this pull request Jun 30, 2020
PR-URL: #33597
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
codebytere pushed a commit that referenced this pull request Jul 9, 2020
PR-URL: #33597
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
@codebyterecodebytere mentioned this pull request Jul 13, 2020
nodejs-github-bot pushed a commit that referenced this pull request Feb 24, 2023
PR-URL: #46633
Refs: #33597
Refs: nodejs/node-addon-api#1283
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
targos pushed a commit that referenced this pull request Mar 13, 2023
PR-URL: #46633
Refs: #33597
Refs: nodejs/node-addon-api#1283
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
danielleadams pushed a commit that referenced this pull request Apr 11, 2023
PR-URL: #46633
Refs: #33597
Refs: nodejs/node-addon-api#1283
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.c++Issues and PRs that require attention from people who are familiar with C++.node-apiIssues and PRs related to the Node-API.wasmIssues and PRs related to WebAssembly.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@devsnek@nodejs-github-bot@jasnell@cjihrig@tniessen@BridgeAR