★ wanayoo — archive 1999 https://github.com/nodejs/node/pull/19039Nouvelle recherche | Portail wanayoo
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

n-api: fix object test #19039

Closed

Conversation

Copy link
Contributor

@gabrielschulhof gabrielschulhof commented Feb 27, 2018

Passing a pointer to a static integer is sufficient for the test.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

n-api

@nodejs-github-bot nodejs-github-bot added dont-land-on-v4.x node-api test labels Feb 27, 2018
@@ -199,7 +198,7 @@ napi_value Wrap(napi_env env, napi_callback_info info) {
napi_value arg;
NAPI_CALL(env, napi_get_cb_info(env, info, &argc, &arg, NULL, NULL));

int32_t* data = malloc(sizeof(int32_t));
int32_t* data = &test_value;
*data = test_value;
Copy link
Contributor

@cjihrig cjihrig Feb 27, 2018

Choose a reason for hiding this comment

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

Isn't this line redundant now?

@gabrielschulhof
Copy link
Contributor Author

@gabrielschulhof gabrielschulhof commented Feb 27, 2018

Passing a pointer to a static integer is sufficient for the test.
@BridgeAR
Copy link
Member

@BridgeAR BridgeAR commented Mar 1, 2018

CI https://ci.nodejs.org/job/node-test-pull-request/13425/

@gabrielschulhof please always start a CI after opening a PR :-)

@BridgeAR BridgeAR added the author ready label Mar 1, 2018
Copy link
Member

@mhdawson mhdawson left a comment

LGTM

@gabrielschulhof
Copy link
Contributor Author

@gabrielschulhof gabrielschulhof commented Mar 2, 2018

Landed in c698017.

gabrielschulhof pushed a commit that referenced this issue Mar 2, 2018
Passing a pointer to a static integer is sufficient for the test.

PR-URL: #19039
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Hitesh Kanwathirtha <hiteshk@microsoft.com>
@gabrielschulhof gabrielschulhof deleted the n-api-fix-test-object branch Mar 2, 2018
addaleax pushed a commit to addaleax/node that referenced this issue Mar 5, 2018
Passing a pointer to a static integer is sufficient for the test.

PR-URL: nodejs#19039
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Hitesh Kanwathirtha <hiteshk@microsoft.com>
@MylesBorins MylesBorins mentioned this pull request Mar 6, 2018
gabrielschulhof pushed a commit to gabrielschulhof/node that referenced this issue Apr 12, 2018
Passing a pointer to a static integer is sufficient for the test.

PR-URL: nodejs#19039
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Hitesh Kanwathirtha <hiteshk@microsoft.com>
gabrielschulhof pushed a commit to gabrielschulhof/node that referenced this issue Apr 16, 2018
Passing a pointer to a static integer is sufficient for the test.

PR-URL: nodejs#19039
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Hitesh Kanwathirtha <hiteshk@microsoft.com>
MylesBorins pushed a commit that referenced this issue Apr 16, 2018
Passing a pointer to a static integer is sufficient for the test.

Backport-PR-URL: #19447
PR-URL: #19039
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Hitesh Kanwathirtha <hiteshk@microsoft.com>
@MylesBorins MylesBorins mentioned this pull request Apr 16, 2018
MylesBorins pushed a commit that referenced this issue May 1, 2018
Passing a pointer to a static integer is sufficient for the test.

Backport-PR-URL: #19265
PR-URL: #19039
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Hitesh Kanwathirtha <hiteshk@microsoft.com>
@MylesBorins MylesBorins mentioned this pull request May 2, 2018
MayaLekova pushed a commit to MayaLekova/node that referenced this issue May 8, 2018
Passing a pointer to a static integer is sufficient for the test.

PR-URL: nodejs#19039
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Hitesh Kanwathirtha <hiteshk@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready node-api test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants