Revert "Merge pull request #897 from Semmle/revert-817-closure-modules"

This reverts commit 95185345fd, reversing
changes made to b8be66ec48.
This commit is contained in:
Asger F
2019-02-07 11:58:38 +00:00
parent 383e82a3f3
commit e4b230ba60
105 changed files with 3526 additions and 133 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 Closure::ClosureModule
select assgn, "Assigning to 'exports' does not export anything."