From 7bc1ee0f387df93aaf31922f81888a4985127fa5 Mon Sep 17 00:00:00 2001 From: huangzhenghua Date: Fri, 28 Apr 2023 17:14:11 +0800 Subject: [PATCH] fix napi xts fail issue: https://gitee.com/openharmony/arkui_ace_engine/issues/I6ZF1K Signed-off-by: huangzhenghua Change-Id: I045145fc77cf148be3d4d91683c6e67c8ea3245d --- arkui/ace_napi_test/entry/src/main/cpp/napi/napi_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arkui/ace_napi_test/entry/src/main/cpp/napi/napi_test.cpp b/arkui/ace_napi_test/entry/src/main/cpp/napi/napi_test.cpp index 485c756dc..f7f0d0c2b 100644 --- a/arkui/ace_napi_test/entry/src/main/cpp/napi/napi_test.cpp +++ b/arkui/ace_napi_test/entry/src/main/cpp/napi/napi_test.cpp @@ -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)); -- GitLab