mirror of
https://gitee.com/openharmony/communication_ipc
synced 2024-11-27 01:51:13 +00:00
添加 NapiScopeHandler 自动管理napi_handle_scope
Signed-off-by: dengliang <15934868816@139.com>
This commit is contained in:
parent
c59add113e
commit
6bce400725
@ -367,7 +367,7 @@ static void OnJsRemoteRequestCallBack(uv_work_t *work, int status)
|
|||||||
CallbackParam *param = reinterpret_cast<CallbackParam *>(work->data);
|
CallbackParam *param = reinterpret_cast<CallbackParam *>(work->data);
|
||||||
|
|
||||||
NapiScopeHandler scopeHandler(param->env);
|
NapiScopeHandler scopeHandler(param->env);
|
||||||
if (!scopeHandler.IsValid()){
|
if (!scopeHandler.IsValid()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user