Skip to content

Commit 77da92f

Browse files
committed
JS: Further localize MkDef
1 parent 5d09ab5 commit 77da92f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

javascript/ql/lib/semmle/javascript/ApiGraphs.qll

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -754,15 +754,13 @@ module API {
754754
or
755755
nd = any(DataFlow::FunctionNode fn).getAReturn()
756756
or
757-
nd = any(Module m).getAnExportedValue(_)
758-
or
759-
nd = any(Module m).getABulkExportedNode()
760-
or
761757
nd = any(DataFlow::InvokeNode i).getAnArgument()
762758
or
763759
nd = any(DataFlow::InvokeNode i).getASpreadArgument()
764760
or
765-
nd = any(EntryPoint e).getASink()
761+
nd = DataFlow::valueNode(any(ExportNamedDeclaration decl).getOperand())
762+
or
763+
nd = DataFlow::valueNode(any(ExportDefaultDeclaration decl).getOperand())
766764
} or
767765
MkUse(DataFlow::Node nd) { nd instanceof DataFlow::SourceNode } or
768766
/** A use of a TypeScript type. */

0 commit comments

Comments
 (0)