Skip to content

Commit 7ddf5ce

Browse files
author
Max Schaefer
committed
JavaScript: Update expected output for unrelated tests.
1 parent 9d3a9d7 commit 7ddf5ce

File tree

6 files changed

+83
-0
lines changed

6 files changed

+83
-0
lines changed

javascript/ql/test/library-tests/DataFlow/enclosingExpr.expected

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,42 @@
1+
| arguments.js:1:1:12:2 | (functi ... 3);\\n}) | arguments.js:1:1:12:2 | (functi ... 3);\\n}) |
2+
| arguments.js:1:1:12:4 | (functi ... );\\n})() | arguments.js:1:1:12:4 | (functi ... );\\n})() |
3+
| arguments.js:1:2:12:1 | functio ... , 3);\\n} | arguments.js:1:2:12:1 | functio ... , 3);\\n} |
4+
| arguments.js:2:14:2:14 | f | arguments.js:2:14:2:14 | f |
5+
| arguments.js:2:16:2:16 | x | arguments.js:2:16:2:16 | x |
6+
| arguments.js:3:13:3:20 | firstArg | arguments.js:3:13:3:20 | firstArg |
7+
| arguments.js:3:13:3:24 | firstArg = x | arguments.js:3:13:3:24 | firstArg = x |
8+
| arguments.js:3:24:3:24 | x | arguments.js:3:24:3:24 | x |
9+
| arguments.js:4:13:4:24 | alsoFirstArg | arguments.js:4:13:4:24 | alsoFirstArg |
10+
| arguments.js:4:13:4:39 | alsoFir ... ents[0] | arguments.js:4:13:4:39 | alsoFir ... ents[0] |
11+
| arguments.js:4:28:4:36 | arguments | arguments.js:4:28:4:36 | arguments |
12+
| arguments.js:4:28:4:39 | arguments[0] | arguments.js:4:28:4:39 | arguments[0] |
13+
| arguments.js:4:38:4:38 | 0 | arguments.js:4:38:4:38 | 0 |
14+
| arguments.js:5:13:5:21 | secondArg | arguments.js:5:13:5:21 | secondArg |
15+
| arguments.js:5:13:5:36 | secondA ... ents[1] | arguments.js:5:13:5:36 | secondA ... ents[1] |
16+
| arguments.js:5:25:5:33 | arguments | arguments.js:5:25:5:33 | arguments |
17+
| arguments.js:5:25:5:36 | arguments[1] | arguments.js:5:25:5:36 | arguments[1] |
18+
| arguments.js:5:35:5:35 | 1 | arguments.js:5:35:5:35 | 1 |
19+
| arguments.js:6:13:6:16 | args | arguments.js:6:13:6:16 | args |
20+
| arguments.js:6:13:6:28 | args = arguments | arguments.js:6:13:6:28 | args = arguments |
21+
| arguments.js:6:20:6:28 | arguments | arguments.js:6:20:6:28 | arguments |
22+
| arguments.js:7:13:7:20 | thirdArg | arguments.js:7:13:7:20 | thirdArg |
23+
| arguments.js:7:13:7:30 | thirdArg = args[2] | arguments.js:7:13:7:30 | thirdArg = args[2] |
24+
| arguments.js:7:24:7:27 | args | arguments.js:7:24:7:27 | args |
25+
| arguments.js:7:24:7:30 | args[2] | arguments.js:7:24:7:30 | args[2] |
26+
| arguments.js:7:29:7:29 | 2 | arguments.js:7:29:7:29 | 2 |
27+
| arguments.js:8:9:8:17 | arguments | arguments.js:8:9:8:17 | arguments |
28+
| arguments.js:8:9:8:22 | arguments = {} | arguments.js:8:9:8:22 | arguments = {} |
29+
| arguments.js:8:21:8:22 | {} | arguments.js:8:21:8:22 | {} |
30+
| arguments.js:9:13:9:23 | notFirstArg | arguments.js:9:13:9:23 | notFirstArg |
31+
| arguments.js:9:13:9:38 | notFirs ... ents[0] | arguments.js:9:13:9:38 | notFirs ... ents[0] |
32+
| arguments.js:9:27:9:35 | arguments | arguments.js:9:27:9:35 | arguments |
33+
| arguments.js:9:27:9:38 | arguments[0] | arguments.js:9:27:9:38 | arguments[0] |
34+
| arguments.js:9:37:9:37 | 0 | arguments.js:9:37:9:37 | 0 |
35+
| arguments.js:11:5:11:5 | f | arguments.js:11:5:11:5 | f |
36+
| arguments.js:11:5:11:14 | f(1, 2, 3) | arguments.js:11:5:11:14 | f(1, 2, 3) |
37+
| arguments.js:11:7:11:7 | 1 | arguments.js:11:7:11:7 | 1 |
38+
| arguments.js:11:10:11:10 | 2 | arguments.js:11:10:11:10 | 2 |
39+
| arguments.js:11:13:11:13 | 3 | arguments.js:11:13:11:13 | 3 |
140
| eval.js:1:10:1:10 | k | eval.js:1:10:1:10 | k |
241
| eval.js:2:7:2:7 | x | eval.js:2:7:2:7 | x |
342
| eval.js:2:7:2:12 | x = 42 | eval.js:2:7:2:12 | x = 42 |

javascript/ql/test/library-tests/DataFlow/flowStep.expected

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
| arguments.js:1:2:12:1 | functio ... , 3);\\n} | arguments.js:1:1:12:2 | (functi ... 3);\\n}) |
2+
| arguments.js:2:5:2:5 | arguments | arguments.js:4:28:4:36 | arguments |
3+
| arguments.js:2:5:2:5 | arguments | arguments.js:5:25:5:33 | arguments |
4+
| arguments.js:2:5:2:5 | arguments | arguments.js:6:20:6:28 | arguments |
5+
| arguments.js:2:5:10:5 | functio ... ;\\n } | arguments.js:2:14:2:14 | f |
6+
| arguments.js:2:14:2:14 | f | arguments.js:11:5:11:5 | f |
7+
| arguments.js:2:16:2:16 | x | arguments.js:2:16:2:16 | x |
8+
| arguments.js:2:16:2:16 | x | arguments.js:3:24:3:24 | x |
9+
| arguments.js:6:13:6:28 | args | arguments.js:7:24:7:27 | args |
10+
| arguments.js:6:20:6:28 | arguments | arguments.js:6:13:6:28 | args |
11+
| arguments.js:8:9:8:22 | arguments | arguments.js:9:27:9:35 | arguments |
12+
| arguments.js:8:21:8:22 | {} | arguments.js:8:9:8:22 | arguments |
13+
| arguments.js:8:21:8:22 | {} | arguments.js:8:9:8:22 | arguments = {} |
114
| eval.js:2:7:2:12 | x | eval.js:4:3:4:3 | x |
215
| eval.js:2:11:2:12 | 42 | eval.js:2:7:2:12 | x |
316
| sources.js:1:6:1:6 | x | sources.js:1:6:1:6 | x |

javascript/ql/test/library-tests/DataFlow/getIntValue.expected

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
| arguments.js:4:38:4:38 | 0 | 0 |
2+
| arguments.js:5:35:5:35 | 1 | 1 |
3+
| arguments.js:7:29:7:29 | 2 | 2 |
4+
| arguments.js:9:37:9:37 | 0 | 0 |
5+
| arguments.js:11:7:11:7 | 1 | 1 |
6+
| arguments.js:11:10:11:10 | 2 | 2 |
7+
| arguments.js:11:13:11:13 | 3 | 3 |
18
| eval.js:2:11:2:12 | 42 | 42 |
29
| sources.js:4:12:4:13 | 19 | 19 |
310
| sources.js:5:4:5:5 | 23 | 23 |

javascript/ql/test/library-tests/DataFlow/incomplete.expected

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
| arguments.js:1:1:12:4 | exceptional return of (functi ... );\\n})() | call |
2+
| arguments.js:1:2:12:1 | exceptional return of anonymous function | call |
3+
| arguments.js:2:5:10:5 | exceptional return of function f | call |
4+
| arguments.js:2:16:2:16 | x | call |
5+
| arguments.js:4:28:4:39 | arguments[0] | heap |
6+
| arguments.js:5:25:5:36 | arguments[1] | heap |
7+
| arguments.js:7:24:7:30 | args[2] | heap |
8+
| arguments.js:9:27:9:38 | arguments[0] | heap |
9+
| arguments.js:11:5:11:14 | exceptional return of f(1, 2, 3) | call |
10+
| arguments.js:11:5:11:14 | f(1, 2, 3) | call |
111
| eval.js:1:1:5:1 | exceptional return of function k | call |
212
| eval.js:2:7:2:12 | x | eval |
313
| eval.js:3:3:3:6 | eval | global |

javascript/ql/test/library-tests/DataFlow/parameters.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
| arguments.js:2:16:2:16 | x |
12
| sources.js:1:6:1:6 | x |
23
| sources.js:3:11:3:11 | x |
34
| sources.js:9:14:9:18 | array |

javascript/ql/test/library-tests/DataFlow/sources.expected

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
| arguments.js:1:1:1:0 | this |
2+
| arguments.js:1:1:12:4 | (functi ... );\\n})() |
3+
| arguments.js:1:2:1:1 | this |
4+
| arguments.js:1:2:12:1 | functio ... , 3);\\n} |
5+
| arguments.js:2:5:2:4 | this |
6+
| arguments.js:2:5:10:5 | functio ... ;\\n } |
7+
| arguments.js:2:16:2:16 | x |
8+
| arguments.js:4:28:4:39 | arguments[0] |
9+
| arguments.js:5:25:5:36 | arguments[1] |
10+
| arguments.js:7:24:7:30 | args[2] |
11+
| arguments.js:8:21:8:22 | {} |
12+
| arguments.js:9:27:9:38 | arguments[0] |
13+
| arguments.js:11:5:11:14 | f(1, 2, 3) |
114
| eval.js:1:1:1:0 | this |
215
| eval.js:1:1:1:0 | this |
316
| eval.js:1:1:5:1 | functio ... eval`\\n} |

0 commit comments

Comments
 (0)