summaryrefslogtreecommitdiffhomepage
path: root/vm.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-08-06 09:28:37 +0200
committerGitHub <noreply@github.com>2022-08-06 09:28:37 +0200
commitf1e393873a17571ada80c189fbedef020d89cdad (patch)
tree935044691733689fbae18879a8bb70bf15672d75 /vm.c
parente55965a3d170f60776ffa2d82b2711d9ea3a0211 (diff)
parentb4a3f6828478f1d831ae11ee4d3dcd82b93407c8 (diff)
Merge pull request #97 from jow-/module-import-export-fixes
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/vm.c b/vm.c
index ad5cd44..3a6e39e 100644
--- a/vm.c
+++ b/vm.c
@@ -1179,6 +1179,9 @@ uc_vm_insn_load_closure(uc_vm_t *vm, uc_vm_insn_t insn)
uc_vm_stack_push(vm, &closure->header);
+ if (function->module)
+ return;
+
for (i = 0; i < function->nupvals; i++) {
uv = (
frame->ip[0] * 0x1000000 +