Skip to content

Commit 23a5c83

Browse files
fix: script life cycle
1 parent 161cc3e commit 23a5c83

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

deps/breeze-js.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
local BREEZE_JS_VERSION = "2026.03.27+10"
2-
local BREEZE_JS_HASH = "d0d1be4a8776556eb90a706f6f8fc25aae670a47"
1+
local BREEZE_JS_VERSION = "2026.03.30+1"
2+
local BREEZE_JS_HASH = "9d70f46e7f9458389578b745e547f7ecec8f9489"
33
local BREEZE_JS_SOURCEDIR = path.join(os.scriptdir(), "../", "../GitHub/breeze-js")
44
local USE_LOCAL = os.exists(BREEZE_JS_SOURCEDIR)
55

src/core/script.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ std::string index_js = {(const char *)_binary_index_js_start,
1919
namespace chromatic::script {
2020
void runtime::cleanup() {
2121
// Auto-cleanup all subsystems when the script context is disposed
22-
chromatic::js::ScriptLifecycle::removeAllDisposeCallbacks();
2322
chromatic::js::NativeMemoryAccessMonitor::disableAll();
2423
chromatic::js::NativeHardwareBreakpoint::removeAll();
2524
chromatic::js::NativeSoftwareBreakpoint::removeAll();
@@ -30,6 +29,7 @@ void runtime::cleanup() {
3029
void runtime::reset() {
3130
// Let JS do its cleanup first via dispose callbacks
3231
chromatic::js::ScriptLifecycle::_callDisposeCallbacks();
32+
context.stop_event_loop_in_time(std::chrono::milliseconds(100));
3333
// Then native cleanup
3434
cleanup();
3535
context.on_bind.clear();

0 commit comments

Comments
 (0)