Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Feature request: Store hoisting information #1603
Because it is necessary to list all hoisted declarations when evaluating a js tree (variables and first level functions), I think Program and Function declarations should store the list of statements that are visible at their levels.
In esprima.net I created a new context variable to store the declarations as parsed, and copy them to the parsed scope object (program and function declaration)