[Pkg-javascript-commits] [uglifyjs] 06/26: SpiderMonkey `Identifier` nodes should contain mangled names.
    Jonas Smedegaard 
    dr at jones.dk
       
    Tue May 19 00:02:20 UTC 2015
    
    
  
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag v2.4.16
in repository uglifyjs.
commit 5e314bf3e934c9e54bd7145af04b36a1e36e5988
Author: Ingvar Stepanyan <me at rreverser.com>
Date:   Sun Aug 3 01:28:58 2014 +0300
    SpiderMonkey `Identifier` nodes should contain mangled names.
---
 lib/mozilla-ast.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/mozilla-ast.js b/lib/mozilla-ast.js
index 0d2259d..7f0995c 100644
--- a/lib/mozilla-ast.js
+++ b/lib/mozilla-ast.js
@@ -328,9 +328,10 @@
     });
 
     def_to_moz(AST_Symbol, function To_Moz_Identifier(M) {
+        var def = M.definition();
         return {
             type: "Identifier",
-            name: M.name
+            name: def ? def.mangled_name || def.name : M.name
         };
     });
 
-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git
    
    
More information about the Pkg-javascript-commits
mailing list