This commit is contained in:
Dmitry Vasilev
2022-12-02 08:17:49 +08:00
parent 0845a87960
commit 747bceda7b
4 changed files with 41 additions and 17 deletions

View File

@@ -202,6 +202,11 @@ export const topsort_modules = (modules) => {
)
}
export const has_toplevel_await = modules =>
Object.values(modules).some(m =>
m.children.find(c => c.type == 'unary' && c.operator == 'await' ) != null
)
// TODO not implemented
// TODO detect cycles when loading modules
export const check_imports = modules => {