From 6b355921011c6b3daea143b0db3497e057ea5c07 Mon Sep 17 00:00:00 2001 From: Luis Michaelis Date: Thu, 4 Jan 2024 10:17:57 +0100 Subject: [PATCH] fix(DaedalusVm): set the lenient exception handle by default --- src/DaedalusVm.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/DaedalusVm.cc b/src/DaedalusVm.cc index cf81a72..e45636e 100644 --- a/src/DaedalusVm.cc +++ b/src/DaedalusVm.cc @@ -22,6 +22,7 @@ ZkDaedalusVm* ZkDaedalusVm_load(ZkRead* buf) { zenkit::register_all_script_classes(script); auto* vm = new ZkDaedalusVm {zenkit::DaedalusVm {std::move(script)}, {}, nullptr}; + vm->handle.register_exception_handler(zenkit::lenient_vm_exception_handler); vm->handle.register_default_external_custom([vm](zenkit::DaedalusVm& v, zenkit::DaedalusSymbol& sym) { auto callback = vm->externals.find(sym.index());