add for loop

This commit is contained in:
2023-03-20 00:00:17 +00:00
parent a080152aee
commit b56c1fc485
12 changed files with 203 additions and 73 deletions

View File

@@ -134,7 +134,7 @@ func importMod(realpath string, origin string, main bool) (ArObject, ArErr) {
"scope": global,
}),
})
_, runimeErr, _ := run(translated, stack{vars, localvars, global})
_, runimeErr := ThrowOnNonLoop(run(translated, stack{vars, localvars, global}))
importing[p] = false
if runimeErr.EXISTS {
return ArObject{}, runimeErr