From d21f4e025760c4063551fddc131c2ff12dfc5597 Mon Sep 17 00:00:00 2001 From: wwwcg Date: Thu, 1 Aug 2024 15:58:54 +0800 Subject: [PATCH] chore(ios): remove unnecessary exception check log --- driver/js/src/napi/jsc/jsc_ctx.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/driver/js/src/napi/jsc/jsc_ctx.cc b/driver/js/src/napi/jsc/jsc_ctx.cc index 2b2d2e35f2e..21669d0905f 100644 --- a/driver/js/src/napi/jsc/jsc_ctx.cc +++ b/driver/js/src/napi/jsc/jsc_ctx.cc @@ -359,7 +359,6 @@ std::shared_ptr JSCCtx::DefineClass(const string_view& name, JSObjectCallAsFunction(context_, define_property, object, 3, values, &exception); if (exception) { SetException(std::make_shared(context_, exception)); - FOOTSTONE_LOG(ERROR) << GetExceptionMessage(exception_); return nullptr; } } @@ -895,7 +894,6 @@ std::shared_ptr JSCCtx::CallFunction(const std::shared_ptr& auto function_object = JSValueToObject(context_, function_value->value_, &exception); if (exception) { SetException(std::make_shared(context_, exception)); - FOOTSTONE_LOG(ERROR) << GetExceptionMessage(exception_); return nullptr; } @@ -903,7 +901,6 @@ std::shared_ptr JSCCtx::CallFunction(const std::shared_ptr& auto receiver_object = JSValueToObject(context_, receiver_value->value_, &exception); if (exception) { SetException(std::make_shared(context_, exception)); - FOOTSTONE_LOG(ERROR) << GetExceptionMessage(exception_); return nullptr; } @@ -911,7 +908,6 @@ std::shared_ptr JSCCtx::CallFunction(const std::shared_ptr& auto ret_value_ref = JSObjectCallAsFunction(context_, function_object, receiver_object, 0, nullptr, &exception); if (exception) { SetException(std::make_shared(context_, exception)); - FOOTSTONE_LOG(ERROR) << GetExceptionMessage(exception_); return nullptr; } return std::make_shared(context_, ret_value_ref); @@ -926,7 +922,6 @@ std::shared_ptr JSCCtx::CallFunction(const std::shared_ptr& auto ret_value_ref = JSObjectCallAsFunction(context_, function_object, receiver_object, argc, values, &exception); if (exception) { SetException(std::make_shared(context_, exception)); - FOOTSTONE_LOG(ERROR) << GetExceptionMessage(exception_); return nullptr; } @@ -1142,7 +1137,6 @@ std::shared_ptr JSCCtx::RunScript(const string_view& data, if (exception) { SetException(std::make_shared(context_, exception)); - FOOTSTONE_LOG(ERROR) << GetExceptionMessage(exception_); return nullptr; }