diff --git a/vm/vm_test.go b/vm/vm_test.go index 3500654..9cf9644 100644 --- a/vm/vm_test.go +++ b/vm/vm_test.go @@ -20,8 +20,8 @@ func testInterrupt() { } } - env.Define("println", fmt.Println) - env.Define("sleep", sleepFunc) + env.DefineS("println", fmt.Println) + env.DefineS("sleep", sleepFunc) script := ` sleep("2s")