We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42f762a commit a6488cbCopy full SHA for a6488cb
javascript/ql/lib/semmle/javascript/internal/NameResolution.qll
@@ -312,12 +312,12 @@ module NameResolution {
312
*/
313
private predicate storeToVariable(Expr value, string prop, LocalVariableLike target) {
314
exists(AssignExpr assign |
315
- // exports.name = value
+ // target.name = value
316
assign.getLhs().(PropAccess).accesses(target.getAnAccess(), prop) and
317
value = assign.getRhs()
318
)
319
or
320
- // exports = { name: value }
+ // target = { name: value }
321
value = target.getAnAssignedExpr().(ObjectExpr).getPropertyByName(prop).getInit()
322
}
323
0 commit comments