-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
gabrielschulhof
wants to merge
1
commit into
nodejs:master
from
gabrielschulhof:n-api-fix-test-object
Closed
n-api: fix object test #19039
gabrielschulhof
wants to merge
1
commit into
nodejs:master
from
gabrielschulhof:n-api-fix-test-object
Conversation
This file contains 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
nodejs-github-bot
added
dont-land-on-v4.x
node-api
Issues and PRs related to the Node-API.
test
Issues and PRs related to the tests.
labels
Feb 27, 2018
cjihrig
approved these changes
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; |
There was a problem hiding this comment.
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?
Yeah, I'll get rid of it altogether.
…On Tue, Feb 27, 2018 at 2:08 PM, Colin Ihrig ***@***.***> wrote:
***@***.**** approved this pull request.
------------------------------
In test/addons-napi/test_object/test_object.c
<#19039 (comment)>:
> @@ -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;
Isn't this line redundant now?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#19039 (review)>,
or mute the thread
<https:/notifications/unsubscribe-auth/AA7k0QsMmy7jfk7aXglqHPca_MLXyjpNks5tZFKcgaJpZM4SVZVn>
.
|
Passing a pointer to a static integer is sufficient for the test.
gabrielschulhof
force-pushed
the
n-api-fix-test-object
branch
from
February 27, 2018 19:55
6bba350
to
b0f7927
Compare
digitalinfinity
approved these changes
Feb 27, 2018
CI https://ci.nodejs.org/job/node-test-pull-request/13425/ @gabrielschulhof please always start a CI after opening a PR :-) |
BridgeAR
added
the
author ready
PRs that have at least one approval, no pending requests for changes, and a CI started.
label
Mar 1, 2018
mhdawson
approved these changes
Mar 1, 2018
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Landed in c698017. |
gabrielschulhof
pushed a commit
that referenced
this pull request
Mar 2, 2018
Passing a pointer to a static integer is sufficient for the test. PR-URL: #19039 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Hitesh Kanwathirtha <[email protected]>
addaleax
pushed a commit
to addaleax/node
that referenced
this pull request
Mar 5, 2018
Passing a pointer to a static integer is sufficient for the test. PR-URL: nodejs#19039 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Hitesh Kanwathirtha <[email protected]>
Merged
gabrielschulhof
pushed a commit
to gabrielschulhof/node
that referenced
this pull request
Apr 12, 2018
Passing a pointer to a static integer is sufficient for the test. PR-URL: nodejs#19039 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Hitesh Kanwathirtha <[email protected]>
gabrielschulhof
pushed a commit
to gabrielschulhof/node
that referenced
this pull request
Apr 16, 2018
Passing a pointer to a static integer is sufficient for the test. PR-URL: nodejs#19039 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Hitesh Kanwathirtha <[email protected]>
MylesBorins
pushed a commit
that referenced
this pull request
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 <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Hitesh Kanwathirtha <[email protected]>
Merged
MylesBorins
pushed a commit
that referenced
this pull request
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 <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Hitesh Kanwathirtha <[email protected]>
Merged
MayaLekova
pushed a commit
to MayaLekova/node
that referenced
this pull request
May 8, 2018
Passing a pointer to a static integer is sufficient for the test. PR-URL: nodejs#19039 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Hitesh Kanwathirtha <[email protected]>
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 pending requests for changes, and a CI started.
node-api
Issues and PRs related to the Node-API.
test
Issues and PRs related to the tests.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Passing a pointer to a static integer is sufficient for the test.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
n-api