diff --git a/lib/scope.js b/lib/scope.js index ac58ad80..371afb2b 100644 --- a/lib/scope.js +++ b/lib/scope.js @@ -350,7 +350,8 @@ AST_Scope.DEFMETHOD("references", function(sym){ }); AST_Symbol.DEFMETHOD("unmangleable", function(options){ - return this.definition().unmangleable(options); + var def = this.definition(); + return def && def.unmangleable(options); }); // property accessors are not mangleable