From fb8c9e3a48501c0a49ec30ba0a60cad7053adc3f Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Tue, 21 Aug 2012 20:06:57 +0300 Subject: declare some properties in the node constructor so that they're copied in clone --- lib/scope.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/scope.js') diff --git a/lib/scope.js b/lib/scope.js index a0170561..5ee0fb4b 100644 --- a/lib/scope.js +++ b/lib/scope.js @@ -231,9 +231,9 @@ AST_Scope.DEFMETHOD("next_mangled", function(){ out: while (true) { var m = base54(++this.cname); if (!is_identifier(m)) continue; // skip over "do" - // if it's for functions or variables, we must ensure that the - // mangled name does not shadow a name from some parent scope - // that is referenced in this or in inner scopes. + // we must ensure that the mangled name does not shadow a name + // from some parent scope that is referenced in this or in + // inner scopes. for (var i = n; --i >= 0;) { var sym = ext[i]; var name = sym.mangled_name || sym.name; -- cgit v1.2.3