mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
Revert "JS: Add support for Closure modules"
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user