Skip to content

src: change guards to NAPI_VERSION > 5 - #697

Closed
gabrielschulhof wants to merge 1 commit into
nodejs:masterfrom
gabrielschulhof:remove-NODE_MAJOR_VERSION-guards
Closed

src: change guards to NAPI_VERSION > 5#697
gabrielschulhof wants to merge 1 commit into
nodejs:masterfrom
gabrielschulhof:remove-NODE_MAJOR_VERSION-guards

Conversation

@gabrielschulhof

Copy link
Copy Markdown
Contributor

Since we have made the decision that we shall include BigInt into
N-API 6, we can change the guards for the BigInt and BigInt-based
typed array wrappers accordingly, and end our reliance on guarding by
NODE_MAJOR_VERSION.

Signed-off-by: @gabrielschulhof

Supersedes #694.

@gabrielschulhof
gabrielschulhofforce-pushed the remove-NODE_MAJOR_VERSION-guards branch 2 times, most recently from 3acf151 to 4f19ef7CompareApril 7, 2020 22:05
@gabrielschulhof
gabrielschulhofforce-pushed the remove-NODE_MAJOR_VERSION-guards branch from 4f19ef7 to 0d23cd9CompareApril 7, 2020 22:32

@legendecaslegendecas 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.

LGTM

Comment threadtest/binding.cc Outdated
Comment threadtest/binding.cc Outdated
@gabrielschulhof
gabrielschulhofforce-pushed the remove-NODE_MAJOR_VERSION-guards branch from 0d23cd9 to 5e0bcd7CompareApril 10, 2020 05:08
@gabrielschulhof

Copy link
Copy Markdown
ContributorAuthor

@NickNaso I removed the extra comments.

NickNaso
NickNaso previously approved these changes Apr 10, 2020

@NickNasoNickNaso 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.

LGTM

@gabrielschulhof

Copy link
Copy Markdown
ContributorAuthor

@NickNaso looks like your subsequent approval did not clear your previous request for changes. Can you please dismiss?

@NickNaso
NickNaso dismissed their stale reviewApril 10, 2020 16:12

My approval did not clear changes that I requested.

@gabrielschulhof

Copy link
Copy Markdown
ContributorAuthor

@NickNaso looks like dismissing your change request also dismissed your approval. Could you please re-approve?

@NickNasoNickNaso 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.

LGTM

@gabrielschulhof

gabrielschulhof commented Apr 13, 2020

Copy link
Copy Markdown
ContributorAuthor

@mhdawsonmhdawson mentioned this pull request Apr 13, 2020
8 tasks
@gabrielschulhof
gabrielschulhofforce-pushed the remove-NODE_MAJOR_VERSION-guards branch from 5e0bcd7 to b737089CompareApril 13, 2020 15:11
@gabrielschulhof

Copy link
Copy Markdown
ContributorAuthor

On Windows it looks like one cannot distinguish between thread IDs using http://docs.libuv.org/en/v1.x/threading.html#c.uv_thread_equal.

@gabrielschulhof

Copy link
Copy Markdown
ContributorAuthor

nodejs/node#32823 should fix this problem.

@mhdawsonmhdawson 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.

LGTM

gabrielschulhof pushed a commit to gabrielschulhof/node that referenced this pull request Apr 16, 2020
This reverts commit aeb7084.
The solution creates incorrect behaviour on Windows.
Re: nodejs/node-addon-api#697 (comment)
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
gabrielschulhof pushed a commit to nodejs/node that referenced this pull request Apr 16, 2020
This reverts commit aeb7084.
The solution creates incorrect behaviour on Windows.
Re: nodejs/node-addon-api#697 (comment)
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
PR-URL: #32880
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
MylesBorins pushed a commit to nodejs/node that referenced this pull request Apr 17, 2020
This reverts commit aeb7084.
The solution creates incorrect behaviour on Windows.
Re: nodejs/node-addon-api#697 (comment)
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
PR-URL: #32880
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
gabrielschulhof pushed a commit to gabrielschulhof/node that referenced this pull request Apr 20, 2020
This reverts commit aeb7084.
The solution creates incorrect behaviour on Windows.
Re: nodejs/node-addon-api#697 (comment)
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
PR-URL: nodejs#32880
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
@NickNaso

Copy link
Copy Markdown
Member

@gabrielschulhof Could I merge this PR?

@gabrielschulhof

Copy link
Copy Markdown
ContributorAuthor

@NickNaso I don't believe the tests will pass on 14, 13, 12, and 10 without nodejs/node#32948.

Since we have made the decision that we shall include `BigInt` into
N-API 6, we can change the guards for the `BigInt` and `BigInt`-based
typed array wrappers accordingly, and end our reliance on guarding by
`NODE_MAJOR_VERSION`.
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
@gabrielschulhof
gabrielschulhofforce-pushed the remove-NODE_MAJOR_VERSION-guards branch from b737089 to 9ace39eCompareApril 24, 2020 22:27
@gabrielschulhof

gabrielschulhof commented Apr 24, 2020

Copy link
Copy Markdown
ContributorAuthor

gabrielschulhof pushed a commit that referenced this pull request Apr 24, 2020
Since we have made the decision that we shall include `BigInt` into
N-API 6, we can change the guards for the `BigInt` and `BigInt`-based
typed array wrappers accordingly, and end our reliance on guarding by
`NODE_MAJOR_VERSION`.
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
PR-URL: #697
Reviewed-By: Nicola Del Gobbo <nicoladelgobbo@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
@gabrielschulhof

Copy link
Copy Markdown
ContributorAuthor

Landed in 82a9650.

targos pushed a commit to nodejs/node that referenced this pull request Apr 28, 2020
This reverts commit aeb7084.
The solution creates incorrect behaviour on Windows.
Re: nodejs/node-addon-api#697 (comment)
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
PR-URL: #32880
Backport-PR-URL: #32948
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
@gabrielschulhof
gabrielschulhof deleted the remove-NODE_MAJOR_VERSION-guards branch February 1, 2021 16:39
@gabrielschulhof
gabrielschulhof restored the remove-NODE_MAJOR_VERSION-guards branch February 1, 2021 16:40
@gabrielschulhof
gabrielschulhof deleted the remove-NODE_MAJOR_VERSION-guards branch March 7, 2021 18:44
kevindavies8 added a commit to kevindavies8/node-addon-api-Develop that referenced this pull request Aug 24, 2022
Since we have made the decision that we shall include `BigInt` into
N-API 6, we can change the guards for the `BigInt` and `BigInt`-based
typed array wrappers accordingly, and end our reliance on guarding by
`NODE_MAJOR_VERSION`.
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
PR-URL: nodejs/node-addon-api#697
Reviewed-By: Nicola Del Gobbo <nicoladelgobbo@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Marlyfleitas added a commit to Marlyfleitas/node-api-addon-Development that referenced this pull request Aug 26, 2022
Since we have made the decision that we shall include `BigInt` into
N-API 6, we can change the guards for the `BigInt` and `BigInt`-based
typed array wrappers accordingly, and end our reliance on guarding by
`NODE_MAJOR_VERSION`.
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
PR-URL: nodejs/node-addon-api#697
Reviewed-By: Nicola Del Gobbo <nicoladelgobbo@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
wroy7860 added a commit to wroy7860/addon-api-benchmark-node that referenced this pull request Sep 19, 2022
Since we have made the decision that we shall include `BigInt` into
N-API 6, we can change the guards for the `BigInt` and `BigInt`-based
typed array wrappers accordingly, and end our reliance on guarding by
`NODE_MAJOR_VERSION`.
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
PR-URL: nodejs/node-addon-api#697
Reviewed-By: Nicola Del Gobbo <nicoladelgobbo@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
johnfrench3 pushed a commit to johnfrench3/node-addon-api-git that referenced this pull request Aug 11, 2023
Since we have made the decision that we shall include `BigInt` into
N-API 6, we can change the guards for the `BigInt` and `BigInt`-based
typed array wrappers accordingly, and end our reliance on guarding by
`NODE_MAJOR_VERSION`.
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
PR-URL: nodejs/node-addon-api#697
Reviewed-By: Nicola Del Gobbo <nicoladelgobbo@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@gabrielschulhof@NickNaso@legendecas@mhdawson