handle variable declaration within catch blocks (#1546)
accounts for IE8- scoping
This commit is contained in:
@@ -154,8 +154,7 @@ AST_Toplevel.DEFMETHOD("figure_out_scope", function(options){
|
||||
}
|
||||
else if (node instanceof AST_SymbolVar
|
||||
|| node instanceof AST_SymbolConst) {
|
||||
var def = defun.def_variable(node);
|
||||
def.init = tw.parent().value;
|
||||
defun.def_variable(node);
|
||||
}
|
||||
else if (node instanceof AST_SymbolCatch) {
|
||||
scope.def_variable(node);
|
||||
|
||||
Reference in New Issue
Block a user