Skip to content

Commit 0064451

Browse files
authored
Merge pull request #10491 from hvitved/ruby/fix-bad-join
Ruby: Fix bad join-order
2 parents 5af739d + 2677ab6 commit 0064451

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ruby/ql/lib/codeql/ruby/ast/internal/Module.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,9 +519,9 @@ module ExposedForTestingOnly {
519519
private TMethodOrExpr lookupMethodOrConst0(Module m, string name) {
520520
result = lookupMethodOrConst0(m.getAPrependedModule(), name)
521521
or
522-
not exists(getMethodOrConst(getAncestors(m.getAPrependedModule()), name)) and
522+
not exists(getMethodOrConst(getAncestors(m.getAPrependedModule()), pragma[only_bind_into](name))) and
523523
(
524-
result = getMethodOrConst(m, name)
524+
result = getMethodOrConst(m, pragma[only_bind_into](name))
525525
or
526526
not exists(getMethodOrConst(m, name)) and
527527
result = lookupMethodOrConst0(m.getAnIncludedModule(), name)

0 commit comments

Comments
 (0)