shapesecurity / shift-scope-js

scope analyser for the Shift AST
http://shift-ast.org/scope.html
Apache License 2.0
11 stars 6 forks source link

Function scope doesn't include own name #23

Closed tolmasky closed 7 years ago

tolmasky commented 9 years ago

Not sure if this is correct or not, but variables in function x(){}'s scope doesn't contain "x".

michaelficarra commented 9 years ago

Can you be a bit more specific? A function declaration's binding is added to the containing scope, and a function expression's binding is added to a scope between the containing scope and the function body's scope.