mirror of
https://github.com/Open-Argon/argon-v3.git
synced 2025-12-06 08:56:07 +00:00
get rid of circular imports
This commit is contained in:
@@ -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{}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user