mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
Revert "Merge pull request #897 from Semmle/revert-817-closure-modules"
This reverts commit95185345fd, reversing changes made tob8be66ec48.
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user