提交 8e97ac82 编写于 作者: C chengjinsong2

test NAPI

Signed-off-by: Nchengjinsong2 <chengjinsong2@huawei.com>
上级 b7aa7425
......@@ -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.
先完成此消息的编辑!
想要评论请 注册