Skip to content

Commit cb87494

Browse files
committed
Test updates from introduction of implicit 'this'
1 parent bd94fe1 commit cb87494

File tree

3 files changed

+17
-14
lines changed

3 files changed

+17
-14
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,7 @@ flowStep
999999
| tst2.ts:13:26:13:29 | List | tst2.ts:13:26:13:37 | List<string> |
10001000
| tst2.ts:13:39:13:38 | args | tst2.ts:13:39:13:38 | args |
10011001
| tst2.ts:13:39:13:38 | args | tst2.ts:13:39:13:38 | args |
1002-
| tst2.ts:13:39:13:38 | this | tst2.ts:13:39:13:38 | implicit 'this' argument of super(...args) |
1002+
| tst2.ts:13:39:13:38 | this | tst2.ts:13:39:13:38 | implicit 'this' |
10031003
| tst2.ts:15:11:15:13 | A.x | tst2.ts:15:11:15:30 | A.x satisfies number |
10041004
| tst.js:1:1:1:1 | x | tst.js:3:5:3:5 | x |
10051005
| tst.js:1:10:1:11 | fs | tst.js:1:10:1:11 | fs |
@@ -1080,7 +1080,7 @@ flowStep
10801080
| tst.js:46:10:46:11 | "" | tst.js:46:1:46:11 | global = "" |
10811081
| tst.js:49:1:54:1 | A | tst.js:55:1:55:1 | A |
10821082
| tst.js:49:1:54:1 | class A ... `\\n }\\n} | tst.js:49:1:54:1 | A |
1083-
| tst.js:50:14:50:13 | this | tst.js:51:5:51:13 | implicit 'this' argument of super(42) |
1083+
| tst.js:50:14:50:13 | this | tst.js:51:5:51:9 | implicit 'this' |
10841084
| tst.js:64:1:67:1 | functio ... lysed\\n} | tst.js:64:11:64:11 | h |
10851085
| tst.js:64:11:64:11 | h | tst.js:68:12:68:12 | h |
10861086
| tst.js:68:5:68:14 | iter | tst.js:69:1:69:4 | iter |
@@ -1187,6 +1187,7 @@ getImmediatePredecessor
11871187
| tst2.ts:13:26:13:29 | List | tst2.ts:13:26:13:37 | List<string> |
11881188
| tst2.ts:13:39:13:38 | args | tst2.ts:13:39:13:38 | args |
11891189
| tst2.ts:13:39:13:38 | args | tst2.ts:13:39:13:38 | args |
1190+
| tst2.ts:13:39:13:38 | this | tst2.ts:13:39:13:38 | implicit 'this' |
11901191
| tst2.ts:15:11:15:13 | A.x | tst2.ts:15:11:15:30 | A.x satisfies number |
11911192
| tst.js:1:10:1:11 | fs | tst.js:1:10:1:11 | fs |
11921193
| tst.js:1:10:1:11 | fs | tst.js:7:1:7:2 | fs |
@@ -1249,6 +1250,7 @@ getImmediatePredecessor
12491250
| tst.js:46:10:46:11 | "" | tst.js:46:1:46:11 | global = "" |
12501251
| tst.js:49:1:54:1 | A | tst.js:55:1:55:1 | A |
12511252
| tst.js:49:1:54:1 | class A ... `\\n }\\n} | tst.js:49:1:54:1 | A |
1253+
| tst.js:50:14:50:13 | this | tst.js:51:5:51:9 | implicit 'this' |
12521254
| tst.js:64:1:67:1 | functio ... lysed\\n} | tst.js:64:11:64:11 | h |
12531255
| tst.js:64:11:64:11 | h | tst.js:68:12:68:12 | h |
12541256
| tst.js:68:5:68:14 | iter | tst.js:69:1:69:4 | iter |

javascript/ql/test/library-tests/PropWrite/tests.expected

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ test_PropWriteRhs
6767
| tst.js:41:18:41:24 | ...arr3 | tst.js:41:18:41:24 | ...arr3 |
6868
| tst.js:41:27:41:29 | "d" | tst.js:41:27:41:29 | "d" |
6969
test_PropWriteBase
70-
| classes.ts:4:3:4:24 | instanc ... foo(); | classes.ts:3:21:3:20 | this |
71-
| classes.ts:8:15:8:35 | public ... erField | classes.ts:8:3:8:2 | this |
72-
| classes.ts:12:17:12:37 | public ... erField | classes.ts:12:5:12:4 | this |
73-
| classes.ts:16:17:16:37 | public ... erField | classes.ts:16:5:16:4 | this |
70+
| classes.ts:4:3:4:24 | instanc ... foo(); | classes.ts:4:3:4:24 | implicit 'this' |
71+
| classes.ts:8:15:8:35 | public ... erField | classes.ts:8:15:8:35 | implicit 'this' |
72+
| classes.ts:12:17:12:37 | public ... erField | classes.ts:12:17:12:37 | implicit 'this' |
73+
| classes.ts:16:17:16:37 | public ... erField | classes.ts:16:17:16:37 | implicit 'this' |
7474
| tst.js:2:5:2:8 | x: 4 | tst.js:1:11:9:1 | {\\n x ... }\\n} |
7575
| tst.js:3:5:5:5 | func: f ... ;\\n } | tst.js:1:11:9:1 | {\\n x ... }\\n} |
7676
| tst.js:6:5:8:5 | f() {\\n ... ;\\n } | tst.js:1:11:9:1 | {\\n x ... }\\n} |

javascript/ql/test/library-tests/frameworks/ReactJS/tests.expected

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ test_ReactComponent_ref
100100
| es5.js:18:33:22:1 | {\\n ren ... ;\\n }\\n} | es5.js:18:33:22:1 | {\\n ren ... ;\\n }\\n} |
101101
| es5.js:18:33:22:1 | {\\n ren ... ;\\n }\\n} | es5.js:19:11:19:10 | this |
102102
| es5.js:18:33:22:1 | {\\n ren ... ;\\n }\\n} | es5.js:20:24:20:27 | this |
103-
| es6.js:1:1:8:1 | class H ... ;\\n }\\n} | es6.js:1:37:1:36 | implicit 'this' argument of super(...args) |
103+
| es6.js:1:1:8:1 | class H ... ;\\n }\\n} | es6.js:1:37:1:36 | implicit 'this' |
104104
| es6.js:1:1:8:1 | class H ... ;\\n }\\n} | es6.js:1:37:1:36 | this |
105105
| es6.js:1:1:8:1 | class H ... ;\\n }\\n} | es6.js:2:9:2:8 | this |
106106
| es6.js:1:1:8:1 | class H ... ;\\n }\\n} | es6.js:3:24:3:27 | this |
@@ -111,31 +111,31 @@ test_ReactComponent_ref
111111
| es6.js:14:1:20:1 | class H ... }\\n} | es6.js:18:9:18:12 | this |
112112
| exportedComponent.jsx:1:8:3:1 | functio ... r}}/>\\n} | exportedComponent.jsx:1:8:1:7 | this |
113113
| importedComponent.jsx:3:8:5:1 | functio ... or}/>\\n} | importedComponent.jsx:3:8:3:7 | this |
114-
| namedImport.js:3:1:3:28 | class C ... nent {} | namedImport.js:3:27:3:26 | implicit 'this' argument of super(...args) |
114+
| namedImport.js:3:1:3:28 | class C ... nent {} | namedImport.js:3:27:3:26 | implicit 'this' |
115115
| namedImport.js:3:1:3:28 | class C ... nent {} | namedImport.js:3:27:3:26 | this |
116-
| namedImport.js:5:1:5:20 | class D extends C {} | namedImport.js:5:19:5:18 | implicit 'this' argument of super(...args) |
116+
| namedImport.js:5:1:5:20 | class D extends C {} | namedImport.js:5:19:5:18 | implicit 'this' |
117117
| namedImport.js:5:1:5:20 | class D extends C {} | namedImport.js:5:19:5:18 | this |
118118
| plainfn.js:1:1:3:1 | functio ... div>;\\n} | plainfn.js:1:1:1:0 | this |
119119
| plainfn.js:5:1:7:1 | functio ... iv");\\n} | plainfn.js:5:1:5:0 | this |
120120
| plainfn.js:9:1:12:1 | functio ... rn x;\\n} | plainfn.js:9:1:9:0 | this |
121121
| plainfn.js:20:1:24:1 | functio ... n 42;\\n} | plainfn.js:20:1:20:0 | this |
122-
| preact.js:1:1:7:1 | class H ... }\\n} | preact.js:1:38:1:37 | implicit 'this' argument of super(...args) |
122+
| preact.js:1:1:7:1 | class H ... }\\n} | preact.js:1:38:1:37 | implicit 'this' |
123123
| preact.js:1:1:7:1 | class H ... }\\n} | preact.js:1:38:1:37 | this |
124124
| preact.js:1:1:7:1 | class H ... }\\n} | preact.js:2:11:2:10 | this |
125-
| preact.js:9:1:11:1 | class H ... nt {\\n\\n} | preact.js:9:38:9:37 | implicit 'this' argument of super(...args) |
125+
| preact.js:9:1:11:1 | class H ... nt {\\n\\n} | preact.js:9:38:9:37 | implicit 'this' |
126126
| preact.js:9:1:11:1 | class H ... nt {\\n\\n} | preact.js:9:38:9:37 | this |
127-
| probably-a-component.js:1:1:6:1 | class H ... }\\n} | probably-a-component.js:1:31:1:30 | implicit 'this' argument of super(...args) |
127+
| probably-a-component.js:1:1:6:1 | class H ... }\\n} | probably-a-component.js:1:31:1:30 | implicit 'this' |
128128
| probably-a-component.js:1:1:6:1 | class H ... }\\n} | probably-a-component.js:1:31:1:30 | this |
129129
| probably-a-component.js:1:1:6:1 | class H ... }\\n} | probably-a-component.js:2:11:2:10 | this |
130130
| probably-a-component.js:1:1:6:1 | class H ... }\\n} | probably-a-component.js:3:9:3:12 | this |
131-
| props.js:2:5:3:5 | class C ... {\\n } | props.js:2:37:2:36 | implicit 'this' argument of super(...args) |
131+
| props.js:2:5:3:5 | class C ... {\\n } | props.js:2:37:2:36 | implicit 'this' |
132132
| props.js:2:5:3:5 | class C ... {\\n } | props.js:2:37:2:36 | this |
133133
| props.js:2:5:3:5 | class C ... {\\n } | props.js:9:5:9:55 | new C({ ... ctor"}) |
134134
| props.js:13:31:17:5 | {\\n ... }\\n } | props.js:13:31:17:5 | {\\n ... }\\n } |
135135
| props.js:13:31:17:5 | {\\n ... }\\n } | props.js:14:24:14:23 | this |
136136
| props.js:26:5:28:5 | functio ... ;\\n } | props.js:26:5:26:4 | this |
137137
| props.js:26:5:28:5 | functio ... ;\\n } | props.js:34:5:34:55 | new C({ ... ctor"}) |
138-
| rare-lifecycle-methods.js:1:1:11:1 | class C ... }\\n} | rare-lifecycle-methods.js:1:33:1:32 | implicit 'this' argument of super(...args) |
138+
| rare-lifecycle-methods.js:1:1:11:1 | class C ... }\\n} | rare-lifecycle-methods.js:1:33:1:32 | implicit 'this' |
139139
| rare-lifecycle-methods.js:1:1:11:1 | class C ... }\\n} | rare-lifecycle-methods.js:1:33:1:32 | this |
140140
| rare-lifecycle-methods.js:1:1:11:1 | class C ... }\\n} | rare-lifecycle-methods.js:2:36:2:35 | this |
141141
| rare-lifecycle-methods.js:1:1:11:1 | class C ... }\\n} | rare-lifecycle-methods.js:5:26:5:25 | this |
@@ -155,6 +155,7 @@ test_ReactComponent_ref
155155
| statePropertyWrites.js:1:1:34:1 | class W ... };\\n} | statePropertyWrites.js:18:9:18:11 | cmp |
156156
| statePropertyWrites.js:1:1:34:1 | class W ... };\\n} | statePropertyWrites.js:22:9:22:11 | cmp |
157157
| statePropertyWrites.js:1:1:34:1 | class W ... };\\n} | statePropertyWrites.js:25:20:25:19 | this |
158+
| statePropertyWrites.js:1:1:34:1 | class W ... };\\n} | statePropertyWrites.js:31:5:33:6 | implicit 'this' |
158159
| statePropertyWrites.js:36:19:45:1 | {\\n ren ... ;\\n }\\n} | statePropertyWrites.js:36:19:45:1 | {\\n ren ... ;\\n }\\n} |
159160
| statePropertyWrites.js:36:19:45:1 | {\\n ren ... ;\\n }\\n} | statePropertyWrites.js:37:11:37:10 | this |
160161
| statePropertyWrites.js:36:19:45:1 | {\\n ren ... ;\\n }\\n} | statePropertyWrites.js:38:24:38:27 | this |

0 commit comments

Comments
 (0)