提交 7bc1ee0f 编写于 作者: H huangzhenghua

fix napi xts fail

issue: https://gitee.com/openharmony/arkui_ace_engine/issues/I6ZF1KSigned-off-by: Nhuangzhenghua <huangzhenghua3@huawei.com>
Change-Id: I045145fc77cf148be3d4d91683c6e67c8ea3245d
上级 49d22d2f
......@@ -285,10 +285,10 @@ static napi_value getAndClearLastException(napi_env env, napi_callback_info info
static napi_value isExceptionPending(napi_env env, napi_callback_info info)
{
bool exceptionWasPending = false;
bool exceptionWasPending = true;
napi_is_exception_pending(env, &exceptionWasPending);
NAPI_ASSERT(env, exceptionWasPending, "error succes");
NAPI_ASSERT(env, !exceptionWasPending, "isExceptionPending failed");
napi_value _value;
NAPI_CALL(env, napi_create_int32(env, 0, &_value));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册