Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit df5a865

Browse files
author
Max Schaefer
committed
JavaScript: Reinstate override.
1 parent 0cfd04d commit df5a865

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

javascript/ql/src/semmle/javascript/dataflow/internal/InterModuleTypeInference.qll

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,12 @@ private class AnalyzedVariableExport extends AnalyzedPropertyWrite, DataFlow::Va
263263
astNode = varDef.getTarget()
264264
}
265265

266+
override predicate writes(AbstractValue baseVal, string propName, DataFlow::AnalyzedNode source) {
267+
baseVal = TAbstractExportsObject(export.getEnclosingModule()) and
268+
propName = name and
269+
source = varDef.getSource().analyze()
270+
}
271+
266272
override predicate writesValue(AbstractValue baseVal, string propName, AbstractValue val) {
267273
baseVal = TAbstractExportsObject(export.getEnclosingModule()) and
268274
propName = name and

0 commit comments

Comments
 (0)