Skip to content

Commit

Permalink
fix(DaedalusVm): set the lenient exception handle by default
Browse files Browse the repository at this point in the history
  • Loading branch information
lmichaelis committed Jan 4, 2024
1 parent 76159fa commit 6b35592
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/DaedalusVm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 6b35592

Please sign in to comment.