get rid of circular imports

This commit is contained in:
2024-04-06 15:48:00 +01:00
parent bf15b435c2
commit e8d25d231c
4 changed files with 10 additions and 18 deletions

View File

@@ -85,11 +85,11 @@ func __runTranslatedImport(translatedImport translatedImport, global ArObject, m
"main": main,
}),
})
imported[translatedImport.p] = local
_, runimeErr := run(translatedImport.translated, stack{global, localvars, local})
if runimeErr.EXISTS {
return ArObject{}, runimeErr
}
imported[translatedImport.p] = local
return local, ArErr{}
}