JS: Fix InvalidExport.ql

This commit is contained in:
Asger F
2019-01-28 10:51:18 +00:00
parent 72fe63074a
commit 6a451a6b53

View File

@@ -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."