further improvements
This commit is contained in:
@@ -71,7 +71,7 @@ func compile(path string, debug bool) (bc *compiler.Bytecode, err error) {
|
||||
return c.Bytecode(), nil
|
||||
}
|
||||
|
||||
func ExecFileVM(f string, args []string, debug bool) (err error) {
|
||||
func ExecFileVM(f string, args []string, debug, trace bool) (err error) {
|
||||
var bytecode *compiler.Bytecode
|
||||
|
||||
object.Args = args
|
||||
@@ -89,6 +89,7 @@ func ExecFileVM(f string, args []string, debug bool) (err error) {
|
||||
|
||||
mvm := vm.New(f, bytecode)
|
||||
mvm.Debug = debug
|
||||
mvm.Trace = trace
|
||||
if err = mvm.Run(); err != nil {
|
||||
fmt.Println(err)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user