Skip to content

Commit d3412bb

Browse files
committed
JS: Fix typo in NoSQL model
1 parent 85f0a62 commit d3412bb

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

javascript/ql/src/semmle/javascript/frameworks/NoSQL.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ private module Minimongo {
708708
*/
709709
private module MarsDB {
710710
/** A call to a MarsDB query method. */
711-
private class QueryCall extends DatabaseAccess, API::MethodCallNode {
711+
private class QueryCall extends DatabaseAccess, API::CallNode {
712712
int queryArgIdx;
713713

714714
QueryCall() {
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
ERROR: Could not resolve predicate getArgument/1 (/Users/asger/git/code/ql/javascript/ql/src/semmle/javascript/frameworks/NoSQL.qll:716,60-71)
2-
ERROR: Could not resolve predicate getParameter/1 (/Users/asger/git/code/ql/javascript/ql/src/semmle/javascript/frameworks/NoSQL.qll:719,40-52)
3-
ERROR: Could not resolve type API::MethodCallNode (/Users/asger/git/code/ql/javascript/ql/src/semmle/javascript/frameworks/NoSQL.qll:705,51-70)
1+
values
2+
| index.js:3:1:3:31 | foo({ v ... e: 1 }) | 1 | 1 |
3+
| index.js:4:1:4:31 | foo({ v ... e: 2 }) | 2 | 2 |
4+
mismatch

0 commit comments

Comments
 (0)