添加 NapiScopeHandler 自动管理napi_handle_scope

Signed-off-by: dengliang <15934868816@139.com>
This commit is contained in:
dengliang 2024-11-13 09:31:06 +08:00
parent c59add113e
commit 6bce400725

View File

@ -367,7 +367,7 @@ static void OnJsRemoteRequestCallBack(uv_work_t *work, int status)
CallbackParam *param = reinterpret_cast<CallbackParam *>(work->data);
NapiScopeHandler scopeHandler(param->env);
if (!scopeHandler.IsValid()){
if (!scopeHandler.IsValid()) {
return;
}