n-api: duplicated parameters on napi_open_callback_scope #32897
Labels
async_hooks
Issues and PRs related to the async hooks subsystem.
node-api
Issues and PRs related to the Node-API.
napi_open_callback_scope
accepts annapi_value resource_object
and anothernapi_async_context context
, while annapi_async_context
has to be created with annapi_value async_resource
and its associatednapi_value async_resource_name
. In this case,napi_open_callback_scope
can inferresource_object
to the givennapi_async_context
.Unfortunately,
napi_async_context
currently doesn't hold a reference to itsasync_resource
. Sonapi_open_callback_scope
is unable to access theresource_object
too.This also creates a potential conflict that which resource object should represent the executionAsyncResource of the
napi_callback_scope
.The text was updated successfully, but these errors were encountered: