DescriptionDon't check 'with' for undefined vars, but do record declarations.
There is no general way to statically analyze a 'with' statement for
usage of undefined vars, so we only do what we can: add any declared
vars and functions to our scope.
BUG=https://code.google.com/p/traceur-compiler/issues/detail?id=207
TEST=test/feature/FreeVariableChecker/Error_With.js
test/feature/FreeVariableChecker/WithBasic.js
test/feature/FreeVariableChecker/WithVarDecl.js
Patch Set 1 #Patch Set 2 : A (hopefully) correct implementation this time. #
Total comments: 6
Patch Set 3 : Use a less tricky technique. Update comment. #
Total comments: 2
MessagesTotal messages: 6
|
||||||||||||||||||||||||||||||||||||||||||||||