Open bakkot opened 7 years ago
For example, in
{ function f(){} }
the function does four things from the perspective of scope analysis: declares a global-scoped variable f, declares a block-scoped variable f, reads from the block-scoped variable, and writes to the global-scoped variable.
f
The scope analyzer misses the latter two.
For example, in
the function does four things from the perspective of scope analysis: declares a global-scoped variable
f
, declares a block-scoped variablef
, reads from the block-scoped variable, and writes to the global-scoped variable.The scope analyzer misses the latter two.