interp: limit max instructions per function

This commit is contained in:
Kenneth Bell
2023-09-21 12:13:34 +01:00
parent a73eac22f1
commit ced1fa616c
6 changed files with 20 additions and 8 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ func runTest(t *testing.T, pathPrefix string) {
defer mod.Dispose()
// Perform the transform.
err = Run(mod, 10*time.Minute, 10, false)
err = Run(mod, 10*time.Minute, 10, 0, false)
if err != nil {
if err, match := err.(*Error); match {
println(err.Error())