JS: support imports/exports for closure library code

This commit is contained in:
Asger F
2019-01-23 17:40:46 +00:00
parent 30ba7aedfe
commit 9589ccd40d
30 changed files with 299 additions and 53 deletions

View File

@@ -46,5 +46,7 @@ where
moduleExportsAssign(_, exportsVal) and
// however, if there are no further uses of `exports` the assignment is useless anyway
strictcount(exportsVar.getAnAccess()) > 1
)
) and
// export assignments do work in closure modules
not assgn.getTopLevel() instanceof ClosureModule
select assgn, "Assigning to 'exports' does not export anything."