Skip to content

Commit 8f06e96

Browse files
committed
update expected output
1 parent b9a98f5 commit 8f06e96

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
| a.js:1:15:1:23 | "tainted" | b.js:4:13:4:40 | whoKnow ... Tainted |
22
| a.js:1:15:1:23 | "tainted" | b.js:6:13:6:13 | x |
33
| a.js:2:15:2:28 | "also tainted" | b.js:5:13:5:29 | notTaintedTrustMe |
4+
| async.js:2:16:2:23 | "source" | async.js:8:15:8:27 | await async() |
5+
| async.js:2:16:2:23 | "source" | async.js:13:15:13:20 | sync() |
6+
| async.js:2:16:2:23 | "source" | async.js:27:17:27:17 | e |
7+
| async.js:2:16:2:23 | "source" | async.js:36:17:36:17 | e |
8+
| async.js:2:16:2:23 | "source" | async.js:41:17:41:17 | e |
9+
| async.js:2:16:2:23 | "source" | async.js:54:17:54:36 | unpack(pack(source)) |
10+
| async.js:81:16:81:23 | "source" | async.js:82:14:82:36 | (await ... ce))).p |
11+
| async.js:81:16:81:23 | "source" | async.js:94:15:94:30 | await (getP(o3)) |
12+
| async.js:98:18:98:25 | "source" | async.js:103:15:103:27 | await readP() |
413
| callback.js:16:14:16:21 | "source" | callback.js:13:14:13:14 | x |
514
| callback.js:17:15:17:23 | "source2" | callback.js:13:14:13:14 | x |
615
| callback.js:27:15:27:23 | "source3" | callback.js:13:14:13:14 | x |

javascript/ql/test/library-tests/TaintTracking/exceptions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function test(unsafe, safe) {
4747
try {
4848
throwAsync(source());
4949
} catch (e) {
50-
sink(e); // OK - but flagged anyway
50+
sink(e); // OK
5151
}
5252

5353
throwAsync(source()).catch(e => {
@@ -58,7 +58,7 @@ function test(unsafe, safe) {
5858
try {
5959
await throwAsync(source());
6060
} catch (e) {
61-
sink(e); // NOT OK
61+
sink(e); // NOT OK - but not flagged
6262
}
6363
}
6464
}

0 commit comments

Comments
 (0)