Revert "JS: Add support for Closure modules"

This commit is contained in:
Asger F
2019-02-06 17:30:45 +00:00
committed by GitHub
parent b8be66ec48
commit e46e2b2515
105 changed files with 136 additions and 3529 deletions

View File

@@ -46,7 +46,5 @@ 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 Closure::ClosureModule
)
select assgn, "Assigning to 'exports' does not export anything."