Skip to content

Commit 34d6a4d

Browse files
erik-kroghasgerf
andcommitted
use Rhs of a prop-write
Co-authored-by: Asger F <[email protected]>
1 parent cc2e615 commit 34d6a4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ module AccessPath {
460460
(path = fromReference(result, root) or result = root.getAPropertyRead(path)) and
461461
type = AccessPathRead()
462462
or
463-
(path = fromRhs(result, root) or result = root.getAPropertyWrite(path)) and
463+
(path = fromRhs(result, root) or result = root.getAPropertyWrite(path).getRhs()) and
464464
type = AccessPathWrite()
465465
}
466466

0 commit comments

Comments
 (0)