You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package main
import (
"fmt""github.com/traefik/yaegi/interp""github.com/traefik/yaegi/stdlib"
)
funcmain() {
interpreter:=interp.New(interp.Options{})
interpreter.Use(stdlib.Symbols)
fmt.Println(interpreter.Eval("import \"math\""))
// the line below triggers a panic// it should fail since the code to interpret is invalid, but not panicfmt.Println(interpreter.Eval("math.NaN() <- 4"))
}
The following program
sample.go
triggers a panicExpected result
Got
a panic about a nil pointer dereference
Yaegi Version
v0.14.2
Additional Notes
No response
The text was updated successfully, but these errors were encountered: