MCPcopy Create free account
hub / github.com/dop251/goja / runFile

Method runFile

tc39_test.go:742–749  ·  view source on GitHub ↗
(base, name string, vm *Runtime)

Source from the content-addressed store, hash-verified

740}
741
742func (ctx *tc39TestCtx) runFile(base, name string, vm *Runtime) error {
743 prg, err := ctx.compile(base, name)
744 if err != nil {
745 return err
746 }
747 _, err = vm.RunProgram(prg)
748 return err
749}
750
751func (ctx *tc39TestCtx) runTC39Script(name, src string, includes []string, vm *Runtime) (err error, early bool) {
752 early = true

Callers 2

runTC39TestMethod · 0.95
runTC39ScriptMethod · 0.95

Calls 2

compileMethod · 0.95
RunProgramMethod · 0.80

Tested by

no test coverage detected