mirror of
https://github.com/openharmony/js_sys_module.git
synced 2026-07-18 21:14:31 -04:00
Signed-off-by: lifansheng <lifansheng1@huawei.com>
On branch master Your branch is up to date with 'origin/master'.
This commit is contained in:
@@ -568,8 +568,8 @@ namespace OHOS::Js_sys_module::Process {
|
||||
NAPI_CALL(env_, napi_create_function(env_, cbName.c_str(), cbName.size(), CheckUnhandleRejections,
|
||||
nullptr, &checkcb));
|
||||
NAPI_CALL(env_, napi_create_reference(env_, checkcb, 1, &checkUnhandleRejectionsRef));
|
||||
NAPI_CALL(env_, napi_set_promise_rejection_callback(env_, unHandleRejectionCallbackRef,
|
||||
checkUnhandleRejectionsRef));
|
||||
//NAPI_CALL(env_, napi_set_promise_rejection_callback(env_, unHandleRejectionCallbackRef,
|
||||
// checkUnhandleRejectionsRef));
|
||||
napi_value res = nullptr;
|
||||
NAPI_CALL(env_, napi_get_undefined(env_, &res));
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user