Fix handling of constants

Close #113
This commit is contained in:
Mihai Bazon
2013-02-06 11:15:31 +02:00
parent 719a8fd102
commit 9e8ba27dcd
2 changed files with 2 additions and 7 deletions

View File

@@ -141,7 +141,7 @@ AST_Toplevel.DEFMETHOD("figure_out_scope", function(){
|| node instanceof AST_SymbolConst) {
var def = scope.def_variable(node);
def.constant = node instanceof AST_SymbolConst;
def = tw.parent();
def.init = tw.parent().value;
}
else if (node instanceof AST_SymbolCatch) {
// XXX: this is wrong according to ECMA-262 (12.4). the