提交 2b8dd22b 编写于 作者: 1 18392170496

remove cleanup hook

Signed-off-by: N18392170496 <magentang4@huawei.com>
上级 65d74acd
......@@ -44,7 +44,7 @@ NAPIRemoteObjectHolder::NAPIRemoteObjectHolder(napi_env env, const std::u16strin
napi_create_reference(env, thisVar, 0, &jsObjectRef_);
// register listener for env destruction
napi_status status = napi_add_env_cleanup_hook(env, OnEnvCleanUp, holder);
napi_status status = napi_add_env_cleanup_hook(env, OnEnvCleanUp, this);
if (status != napi_ok) {
ZLOGE(LOG_LABEL, "add cleanup hook failed");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册