scottrogowski / code2flow

Pretty good call graphs for dynamic languages
MIT License
3.98k stars 295 forks source link

[javascript] Function not captured in call graph if created using `let f = function() {...}` (anonymous function) #86

Open dawarhusain opened 1 year ago

dawarhusain commented 1 year ago

The call graph generator is not working for javascript functions declared with the following syntax, that is anonymous functions

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Functions

let f = function(x, y) {
   ...
}

Is this expected behaviour and can this functionality be supported?