From 05e15b1c0c04f673524e0946b5e1b6a60110ada1 Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Wed, 26 Sep 2012 23:54:30 +0300 Subject: [PATCH] fix mangling (bug in our code prevented the mangler from using a name that was in use prior to mangling but not after it) --- lib/scope.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/scope.js b/lib/scope.js index 833a96ef..3165186b 100644 --- a/lib/scope.js +++ b/lib/scope.js @@ -291,7 +291,7 @@ AST_Scope.DEFMETHOD("next_mangled", function(){ // inner scopes. for (var i = n; --i >= 0;) { var sym = ext[i]; - var name = sym.mangled_name || sym.name; + var name = sym.mangled_name || (sym.unmangleable() && sym.name); if (m == name) continue out; } return m; -- 2.34.1