diff options
Diffstat (limited to 'lib/scope.js')
-rw-r--r-- | lib/scope.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/scope.js b/lib/scope.js index 47e05da2..08c9efd8 100644 --- a/lib/scope.js +++ b/lib/scope.js @@ -61,8 +61,6 @@ SymbolDef.next_id = 1; SymbolDef.prototype = { unmangleable: function(options) { - if (!options) options = {}; - return this.global && !options.toplevel || this.undeclared || !options.eval && this.scope.pinned() @@ -296,7 +294,7 @@ AST_Scope.DEFMETHOD("def_variable", function(symbol, init) { AST_Lambda.DEFMETHOD("resolve", return_this); AST_Scope.DEFMETHOD("resolve", function() { - return this.parent_scope; + return this.parent_scope.resolve(); }); AST_Toplevel.DEFMETHOD("resolve", return_this); |