DescriptionVar declarations were always rewritten to assignment statements, however, in
a for loop, the initializer can be either a var decl or an expression but not
an arbitrary statement.
This change rewrites a var declaration to a statement iff it occurs outside
a for-loop (according to the SpiderMonkey parser api)
@5234
Patch Set 1 #
Total comments: 6
Patch Set 2 : Fix var declarations inside for loops at the top level #
MessagesTotal messages: 6
|
||||||||||||||||||||||||||||