Basic data flow analyses framework based on esprima
$ npm install analyses
analyses depends on a globally available
Map, which can either be provided by
--harmony or by preloading a shim before using the library.
analyses itself explicitly does not depend on a shim itself, to be more forward
compatible and to give you more choice.
Since the collections, specifically
do not support any method to iterate over them,
analyses provides a minimal
analyses.Set shim with some useful set operations.
This will change once native
--harmony Sets are actually useful.
var cfg = ;var output =;// the output is a `Map` from CFG nodes to a result set of type `analyses.Set`output