未验证 提交 eecebad4 编写于 作者: O openharmony_ci 提交者: Gitee

!1996 FIX:npai test

Merge pull request !1996 from cheng_jinsong/0529_promis
......@@ -310,7 +310,7 @@ static void GetCallbackWork(napi_env env, StorageAsyncContextPtr asyncContext)
}
if (asyncContext->deferred) {
if (asyncContext->status > 0) {
if (asyncContext->status >= 0) {
napi_resolve_deferred(env, asyncContext->deferred, result[1]);
} else {
napi_reject_deferred(env, asyncContext->deferred, result[0]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册