esgraph
esgraph copied to clipboard
creates a control flow graph from an esprima abstract syntax tree
Hello, I get an exception when I try to get the CFG for the following code: ```js const fs = require('fs'); fs.open('/open/some/file.txt', 'r', (err, fd) => { if (err) throw...
This code: ``` function l(a) { return q.test(a) ? '"' + a.replace(/\"/g, '""') + '"' : a } ``` becomes the following unparsable code: ``` digraph cfg { node [shape="box"]...
Hi What do you think about using `estraverse` (https://github.com/estools/estraverse) ? I see that you are using your own module `walkes`. Maybe we change walkes to use estraverse, or directly replace...
Pass { omitExceptions: true } as second argument to esgraph ControlFlowGraph It's usefull if excpetions should not be considered, either by the analysis or just for display purposes.