Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign updoc: NAPI `napi_open_callback_scope` #25366
+1
−1
Conversation
nodejs-github-bot
added
doc
n-api
labels
Jan 6, 2019
DaAitch
force-pushed the
DaAitch:fix/doc_napi_open_callback_scope
branch
from
b83d610
to
94a5373
Jan 6, 2019
mhdawson
approved these changes
Jan 7, 2019
|
LGTM since it documents current behavior. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Landed in 9e7d4ca |
vsemozhetbyt
closed this
Jan 13, 2019
vsemozhetbyt
added a commit
that referenced
this pull request
Jan 13, 2019
addaleax
added a commit
that referenced
this pull request
Jan 14, 2019
Merged
BridgeAR
added a commit
to BridgeAR/node
that referenced
this pull request
Jan 16, 2019
Merged
BethGriggs
added a commit
that referenced
this pull request
Apr 28, 2019
Merged
BethGriggs
added a commit
that referenced
this pull request
May 10, 2019
MylesBorins
added a commit
that referenced
this pull request
May 16, 2019
This was referenced May 29, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
DaAitch commentedJan 6, 2019
resource_objectis mandatoryChecklist
Description
According to documention
napi_open_callback_scope's parameterresource_objectis optional., but when I do this:
status = napi_open_callback_scope(env, nullptr, async_context, &scope);I get
napi_invalid_argand when I do this:it's
napi_ok, so I checked impl and found this in node_api.cc:which makes me think that documentation is wrong, so here the PR for documentation.