In my code, I call
mod, err := sobek.ParseModule( ... )
mod.Evaluate(vm)
The code results in a nil panic in vm.go:639, which goes away if I call mod.Link()
func (vm *vm) run() {
// ...
for {
// ...
pc := vm.pc
if pc < 0 || pc >= len(vm.prg.code) { // <- nil pointer panic here
break
}
// ...
}
// ...
}
Perhaps a more helpful error message would be nice?