Skip to content

Commit d415184

Browse files
committed
route runtime compile helper through shared default helper
1 parent 1b6c700 commit d415184

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

vibes/runtime_test.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ import (
1111

1212
func compileScript(t *testing.T, source string) *Script {
1313
t.Helper()
14-
engine := MustNewEngine(Config{})
15-
script, err := engine.Compile(source)
16-
if err != nil {
17-
t.Fatalf("compile error: %v", err)
18-
}
19-
return script
14+
return compileScriptDefault(t, source)
2015
}
2116

2217
func callFunc(t *testing.T, script *Script, name string, args []Value) Value {

0 commit comments

Comments
 (0)