Skip to content

Commit e90516d

Browse files
committed
JS: Dont use getALocalSource in fromRhs
1 parent bc35f24 commit e90516d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

javascript/ql/src/semmle/javascript/GlobalAccessPaths.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,13 +184,13 @@ module GlobalAccessPath {
184184
*/
185185
cached
186186
string fromRhs(DataFlow::Node node, Root root) {
187-
exists(DataFlow::SourceNode base, string baseName, string name |
188-
node = base.getAPropertyWrite(name).getRhs() and
189-
result = baseName + "." + name
187+
exists(DataFlow::PropWrite write, string baseName |
188+
node = write.getRhs() and
189+
result = baseName + "." + write.getPropertyName()
190190
|
191-
baseName = fromReference(base, root)
191+
baseName = fromReference(write.getBase(), root)
192192
or
193-
baseName = fromRhs(base, root)
193+
baseName = fromRhs(write.getBase(), root)
194194
)
195195
or
196196
exists(GlobalVariable var |

0 commit comments

Comments
 (0)