File tree Expand file tree Collapse file tree 2 files changed +0
-4
lines changed
lib/semmle/javascript/dataflow
test/library-tests/CallGraphs/AnnotatedTest Expand file tree Collapse file tree 2 files changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -1318,7 +1318,6 @@ module ClassNode {
1318
1318
)
1319
1319
or
1320
1320
// Function-style class methods via prototype
1321
- astNode instanceof Function and
1322
1321
kind = MemberKind:: method ( ) and
1323
1322
exists ( DataFlow:: SourceNode proto |
1324
1323
proto = this .getAPrototypeReference ( ) and
@@ -1361,7 +1360,6 @@ module ClassNode {
1361
1360
)
1362
1361
or
1363
1362
// Function-style class methods via prototype
1364
- astNode instanceof Function and
1365
1363
kind = MemberKind:: method ( ) and
1366
1364
exists ( DataFlow:: SourceNode proto |
1367
1365
proto = this .getAPrototypeReference ( ) and
@@ -1415,7 +1413,6 @@ module ClassNode {
1415
1413
* Only applies to function-style classes.
1416
1414
*/
1417
1415
DataFlow:: SourceNode getAPrototypeReference ( ) {
1418
- astNode instanceof Function and
1419
1416
(
1420
1417
exists ( DataFlow:: SourceNode base | base = getAFunctionValueWithPrototype ( function ) |
1421
1418
result = base .getAPropertyRead ( "prototype" )
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ spuriousCallee
2
2
missingCallee
3
3
| constructor-field.ts:40:5:40:14 | f3.build() | constructor-field.ts:13:3:13:12 | build() {} | -1 | calls |
4
4
| constructor-field.ts:71:1:71:11 | bf3.build() | constructor-field.ts:13:3:13:12 | build() {} | -1 | calls |
5
- | prototypes.js:19:3:19:13 | baz.shout() | prototypes.js:11:23:11:35 | function() {} | -1 | calls |
6
5
badAnnotation
7
6
accessorCall
8
7
| accessors.js:12:1:12:5 | obj.f | accessors.js:5:8:5:12 | () {} |
You can’t perform that action at this time.
0 commit comments