Merge pull request #921 from asger-semmle/class-node-absval

JS: use type inference to back up function-style classes
This commit is contained in:
Max Schaefer
2019-02-13 10:12:20 +00:00
committed by GitHub
4 changed files with 25 additions and 9 deletions

View File

@@ -1,3 +1,4 @@
| namespace.js:5:32:5:44 | function() {} | Baz.method | method |
| tst.js:4:17:4:21 | () {} | A.instanceMethod | method |
| tst.js:7:6:7:10 | () {} | A.bar | method |
| tst.js:9:10:9:14 | () {} | A.baz | getter |

View File

@@ -1,3 +1,4 @@
| namespace.js:5:32:5:44 | function() {} | Baz.method |
| tst.js:4:17:4:21 | () {} | A.instanceMethod |
| tst.js:7:6:7:10 | () {} | A.bar |
| tst.js:17:19:17:31 | function() {} | B.foo |

View File

@@ -0,0 +1,5 @@
goog.provide('foo.bar.baz');
foo.bar.baz = function Baz() {};
foo.bar.baz.prototype.method = function() {};