From 805538995172240b081c451ce6fa77afa2373f99 Mon Sep 17 00:00:00 2001 From: Ryan Hyun Choi Date: Tue, 27 Jul 2021 10:01:47 +0900 Subject: [PATCH] LWNode_Release_210727_24ced91 Change-Id: I6112fa63cb7e3a113961b758e24f84c77436a45d Signed-off-by: Ryan Choi --- lwnode/code/escargotshim/include/v8.h | 6 +++--- lwnode/code/escargotshim/src/api-environment.cc | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lwnode/code/escargotshim/include/v8.h b/lwnode/code/escargotshim/include/v8.h index c137dab..b60ebe7 100644 --- a/lwnode/code/escargotshim/include/v8.h +++ b/lwnode/code/escargotshim/include/v8.h @@ -10699,9 +10699,9 @@ class V8_EXPORT Locker { private: void Initialize(Isolate* isolate); - bool has_lock_; - bool top_level_; - internal::Isolate* isolate_; + bool has_lock_ = false; + bool top_level_ = true; + internal::Isolate* isolate_ = nullptr; }; /** diff --git a/lwnode/code/escargotshim/src/api-environment.cc b/lwnode/code/escargotshim/src/api-environment.cc index 5754db2..3b3cfd2 100644 --- a/lwnode/code/escargotshim/src/api-environment.cc +++ b/lwnode/code/escargotshim/src/api-environment.cc @@ -783,9 +783,9 @@ MaybeLocal v8::RegExp::Exec(Local context, Local v8::Array::New(Isolate* isolate, int length) { API_ENTER_NO_EXCEPTION(isolate); auto lwContext = lwIsolate->GetCurrentContext(); - uint64_t len = length; - if (length < 0) { - len = 0; + uint64_t len = 0; + if (length > 0) { + len = length; } auto r = Evaluator::execute( -- 2.7.4