mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
JS: Fix InvalidExport.ql
This commit is contained in:
@@ -48,5 +48,5 @@ where
|
||||
strictcount(exportsVar.getAnAccess()) > 1
|
||||
) and
|
||||
// export assignments do work in closure modules
|
||||
not assgn.getTopLevel() instanceof ClosureModule
|
||||
not assgn.getTopLevel() instanceof Closure::ClosureModule
|
||||
select assgn, "Assigning to 'exports' does not export anything."
|
||||
|
||||
Reference in New Issue
Block a user