misc fixes
Some checks failed
Build / build (push) Successful in 10m45s
Publish Image / publish (push) Failing after 42s
Test / build (push) Successful in 11m9s

This commit is contained in:
2024-04-01 17:44:15 -04:00
parent 99f7553d67
commit fe33fda0ab
8 changed files with 91 additions and 10 deletions

View File

@@ -81,12 +81,15 @@ func ExecFileVM(f string, args []string, debug, trace bool) (err error) {
} else {
bytecode, err = compile(f, debug)
}
if err != nil {
fmt.Println(err)
return
}
if debug {
log.Printf("Bytecode:\n%s\n", bytecode)
}
mvm := vm.New(f, bytecode)
mvm.Debug = debug
mvm.Trace = trace