Skip to content

Commit 68bb4fa

Browse files
hs0225daeyeon
authored andcommitted
fix: set can_call_into_js value on stopping
Signed-off-by: Hosung Kim [email protected]
1 parent 17d7c06 commit 68bb4fa

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

deps/node/src/node_main_lw_runner-inl.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ class LWNodeMainRunner {
136136
if (env_->is_stopping()) {
137137
return;
138138
}
139+
env_->set_can_call_into_js(false);
139140
env_->set_stopping(true);
140141
uv_stop(env_->event_loop());
141142
});
@@ -220,6 +221,7 @@ class LWNodeMainRunner {
220221
if (environment_->is_stopping()) {
221222
return;
222223
}
224+
environment_->set_can_call_into_js(false);
223225
environment_->set_stopping(true);
224226

225227
uv_async_init(uv_default_loop(), &stop_task_, [](uv_async_t* handle) {

include/lwnode/lwnode-version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818

1919
#define LWNODE_VERSION_MAJOR 1
2020
#define LWNODE_VERSION_MINOR 0
21-
#define LWNODE_VERSION_PATCH 8
22-
#define LWNODE_VERSION_TAG "v1.0.8"
21+
#define LWNODE_VERSION_PATCH 9
22+
#define LWNODE_VERSION_TAG "v1.0.9"

0 commit comments

Comments
 (0)