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

Skip to content

Commit d8165d0

Browse files
committed
JS: Restrict importLookup to ASTNode
1 parent 421ad89 commit d8165d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

javascript/ql/src/definitions.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ predicate variableDeclLookup(VarAccess va, VarDecl decl, string kind) {
6868
* For example, in the statement `var a = require("./a")`, the path expression
6969
* `"./a"` imports a module `a` in the same folder.
7070
*/
71-
predicate importLookup(PathExpr path, Module target, string kind) {
71+
predicate importLookup(ASTNode path, Module target, string kind) {
7272
kind = "I" and
7373
(
7474
exists(Import i |

0 commit comments

Comments
 (0)