Skip to content

test: cover napi_get/set/has_named_property() #26947

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Conversation

gabrielschulhof
Copy link
Contributor

Add test coverage for these N-APIs.

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

@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Mar 27, 2019
@gabrielschulhof gabrielschulhof added the node-api Issues and PRs related to the Node-API. label Mar 27, 2019
@gabrielschulhof gabrielschulhof force-pushed the napi-get-set-has-named-property-test branch from 40b2a69 to e4005e5 Compare March 27, 2019 18:25
Add test coverage for these N-APIs.

PR-URL: nodejs#26947
@gabrielschulhof gabrielschulhof force-pushed the napi-get-set-has-named-property-test branch from e4005e5 to 48b9bfc Compare April 1, 2019 00:27

NAPI_ASSERT(env, argc >= 2, "Wrong number of arguments");

napi_valuetype valuetype0;
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Perhaps it would be more consistent to name the NAPI variables like value_type0 instead of valuetype0, like is done for other variables like key_length above. Or is this intentionally done for the NAPI types?

@nodejs-github-bot
Copy link
Collaborator

Copy link
Member

@mhdawson mhdawson left a comment

Choose a reason for hiding this comment

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

LGTM

@BridgeAR BridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Apr 3, 2019
@nodejs-github-bot
Copy link
Collaborator

@gabrielschulhof
Copy link
Contributor Author

Landed in baa54a5.

# for free to join this conversation on GitHub. Already have an account? # 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants