From: Ryan Hyun Choi Date: Fri, 26 Nov 2021 09:42:56 +0000 (+0900) Subject: LWNode_Release_211126_60148f6 X-Git-Tag: submit/tizen_6.5/20211126.104446^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_6.5;p=platform%2Fframework%2Fweb%2Flwnode.git LWNode_Release_211126_60148f6 Change-Id: Ia180be8da6b97e75fbac935fb0653917941ccf28 Signed-off-by: Ryan Choi --- diff --git a/lwnode/code/escargotshim/src/api-data.cc b/lwnode/code/escargotshim/src/api-data.cc index 880679a..8bcf4a5 100644 --- a/lwnode/code/escargotshim/src/api-data.cc +++ b/lwnode/code/escargotshim/src/api-data.cc @@ -1130,8 +1130,6 @@ Maybe v8::Object::DefineProperty(v8::Local context, API_HANDLE_EXCEPTION(r, lwIsolate, Nothing()); return Just(r.result->asBoolean()); } - - return Just(false); } Maybe v8::Object::SetPrivate(Local context, diff --git a/lwnode/code/escargotshim/src/api/extra-data.cc b/lwnode/code/escargotshim/src/api/extra-data.cc index f4f8c7d..e3d775e 100644 --- a/lwnode/code/escargotshim/src/api/extra-data.cc +++ b/lwnode/code/escargotshim/src/api/extra-data.cc @@ -239,8 +239,9 @@ ExceptionObjectData::ExceptionObjectData( GCVector* ExceptionObjectData::stackTrace( ObjectRef* exceptionObject) { - auto exceptionObjectData = - ExtraDataHelper::getExtraData(exceptionObject)->asExceptionObjectData(); + auto extraData = ExtraDataHelper::getExtraData(exceptionObject); + LWNODE_CHECK(extraData); + auto exceptionObjectData = extraData->asExceptionObjectData(); return exceptionObjectData->stackTrace(); } diff --git a/src/js_native_api_types.h b/src/js_native_api_types.h index 7011c80..e87128b 100644 --- a/src/js_native_api_types.h +++ b/src/js_native_api_types.h @@ -152,8 +152,8 @@ typedef enum { #ifdef NAPI_EXPERIMENTAL typedef struct { - uint64_t lower; - uint64_t upper; + uint64_t lower = 0; + uint64_t upper = 0; } napi_type_tag; #endif // NAPI_EXPERIMENTAL