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 {
13181318 )
13191319 or
13201320 // Function-style class methods via prototype
1321- astNode instanceof Function and
13221321 kind = MemberKind:: method ( ) and
13231322 exists ( DataFlow:: SourceNode proto |
13241323 proto = this .getAPrototypeReference ( ) and
@@ -1361,7 +1360,6 @@ module ClassNode {
13611360 )
13621361 or
13631362 // Function-style class methods via prototype
1364- astNode instanceof Function and
13651363 kind = MemberKind:: method ( ) and
13661364 exists ( DataFlow:: SourceNode proto |
13671365 proto = this .getAPrototypeReference ( ) and
@@ -1415,7 +1413,6 @@ module ClassNode {
14151413 * Only applies to function-style classes.
14161414 */
14171415 DataFlow:: SourceNode getAPrototypeReference ( ) {
1418- astNode instanceof Function and
14191416 (
14201417 exists ( DataFlow:: SourceNode base | base = getAFunctionValueWithPrototype ( function ) |
14211418 result = base .getAPropertyRead ( "prototype" )
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ spuriousCallee
22missingCallee
33| constructor-field.ts:40:5:40:14 | f3.build() | constructor-field.ts:13:3:13:12 | build() {} | -1 | calls |
44| 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 |
65badAnnotation
76accessorCall
87| 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