aboutsummaryrefslogtreecommitdiffstats
path: root/src/bytecode/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bytecode/main.c')
-rwxr-xr-xsrc/bytecode/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bytecode/main.c b/src/bytecode/main.c
index 7f2042e..4b80f71 100755
--- a/src/bytecode/main.c
+++ b/src/bytecode/main.c
@@ -57,8 +57,9 @@ process_source(const StringView *source) {
57#endif 57#endif
58 58
59 // Interpret chunk. 59 // Interpret chunk.
60 Object main_proc = make_lambda(main);
60 CallFrame frame = (CallFrame){ 61 CallFrame frame = (CallFrame){
61 .chunk = main, 62 .closure = main_proc.closure,
62 }; 63 };
63 array_push(vm.frames, frame); 64 array_push(vm.frames, frame);
64 vm_interpret(&vm); 65 vm_interpret(&vm);