File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
javascript/ql/lib/semmle/javascript Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 33import javascript
44private import NodeModuleResolutionImpl
55private import semmle.javascript.DynamicPropertyAccess as DynamicPropertyAccess
6+ private import semmle.javascript.internal.CachedStages
67
78/**
89 * A Node.js module.
@@ -113,6 +114,7 @@ class NodeModule extends Module {
113114 }
114115
115116 override DataFlow:: Node getABulkExportedNode ( ) {
117+ Stages:: Imports:: ref ( ) and
116118 exists ( DataFlow:: PropWrite write |
117119 write .getBase ( ) .asExpr ( ) = this .getModuleVariable ( ) .getAnAccess ( ) and
118120 write .getPropertyName ( ) = "exports" and
Original file line number Diff line number Diff line change @@ -176,6 +176,8 @@ module Stages {
176176 exists ( DataFlow:: moduleImport ( _) )
177177 or
178178 exists ( any ( ReExportDeclaration d ) .getReExportedModule ( ) )
179+ or
180+ exists ( any ( Module m ) .getABulkExportedNode ( ) )
179181 }
180182 }
181183
@@ -276,6 +278,9 @@ module Stages {
276278 .getInstance ( )
277279 .getReceiver ( )
278280 .getPromisedError ( )
281+ .getADecoratedClass ( )
282+ .getADecoratedMember ( )
283+ .getADecoratedParameter ( )
279284 )
280285 }
281286 }
You can’t perform that action at this time.
0 commit comments