interp: replace many panics with error messages

This commit replaces most panics in interp/frame.go and interp/scan.go
with real error messages. The remaining ones are panics that should not
happen when working with valid IR.
This commit is contained in:
Ayke van Laethem
2019-11-26 14:49:44 +01:00
committed by Ron Evans
parent 0db26b0662
commit 24ff2d1ee2
5 changed files with 40 additions and 27 deletions
-1
View File
@@ -27,7 +27,6 @@ type Eval struct {
type evalPackage struct {
*Eval
packagePath string
errors []error
}
// Run evaluates the function with the given name and then eliminates all