FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

node-api: extend type-tagging to externals by gabrielschulhof · Pull Request #47141 · nodejs/node · GitHub

/ node Public

node-api: extend type-tagging to externals - #47141

Merged
nodejs-github-bot merged 6 commits into
nodejs:mainfrom
gabrielschulhof:node-addon-api-1293-verify-type-tagging-of-externals
Mar 22, 2023
Merged

node-api: extend type-tagging to externals#47141
nodejs-github-bot merged 6 commits into
nodejs:mainfrom
gabrielschulhof:node-addon-api-1293-verify-type-tagging-of-externals

Conversation

Copy link
Copy Markdown
Contributor

Since externals behave as JavaScript objects on the JavaScript side, allow them to be type-tagged.

Since externals behave as JavaScript objects on the JavaScript side,
allow them to be type-tagged.

Signed-off-by: Gabriel Schulhof <gabrielschulhof@gmail.com>

nodejs-github-bot commented Mar 17, 2023
edited by gabrielschulhof
Loading

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/node-api

Signed-off-by: Gabriel Schulhof <gabrielschulhof@gmail.com>

Copy link
Copy Markdown
Collaborator

mhdawson left a comment

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Contributor Author

@mhdawson oof! You can't just pick any number for the type tag parameter. It's actually an index into a static array of 5 type tags. I inadvertently caused the test to index beyond the end of the array, and somehow armv7l happened to catch me. Fixed now, and I added a macro to validate the type index passed in from JS.

Copy link
Copy Markdown
Collaborator

aduh95 added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Mar 18, 2023

Copy link
Copy Markdown
Collaborator

legendecas added the node-api Issues and PRs related to the Node-API. label Mar 20, 2023

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

gabrielschulhof added commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. and removed needs-ci PRs that need a full CI run. labels Mar 21, 2023
legendecas added the commit-queue Add this label to land a pull request using GitHub Actions. label Mar 22, 2023
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Mar 22, 2023
nodejs-github-bot merged commit b4365c1 into nodejs:main Mar 22, 2023

Copy link
Copy Markdown
Collaborator

Landed in b4365c1

gabrielschulhof deleted the node-addon-api-1293-verify-type-tagging-of-externals branch March 22, 2023 04:49
RafaelGSS pushed a commit that referenced this pull request Apr 5, 2023
Since externals behave as JavaScript objects on the JavaScript side,
allow them to be type-tagged.

Signed-off-by: Gabriel Schulhof <gabrielschulhof@gmail.com>
PR-URL: #47141
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
RafaelGSS mentioned this pull request Apr 6, 2023
RafaelGSS pushed a commit that referenced this pull request Apr 7, 2023
Since externals behave as JavaScript objects on the JavaScript side,
allow them to be type-tagged.

Signed-off-by: Gabriel Schulhof <gabrielschulhof@gmail.com>
PR-URL: #47141
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
danielleadams pushed a commit that referenced this pull request Jul 6, 2023
Since externals behave as JavaScript objects on the JavaScript side,
allow them to be type-tagged.

Signed-off-by: Gabriel Schulhof <gabrielschulhof@gmail.com>
PR-URL: #47141
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. node-api Issues and PRs related to the Node-API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL