aboutsummaryrefslogtreecommitdiff
path: root/lib/mozilla-ast.js
diff options
context:
space:
mode:
authorIngvar Stepanyan <me@rreverser.com>2014-08-03 01:28:58 +0300
committerIngvar Stepanyan <me@rreverser.com>2014-08-03 01:28:58 +0300
commit5e314bf3e934c9e54bd7145af04b36a1e36e5988 (patch)
treecdbca9346ba00184a1abfa33d7f2967fe832825a /lib/mozilla-ast.js
parent05ba26c7c8b96bddeb7b97ef42b5c03283b8e72e (diff)
downloadtracifyjs-5e314bf3e934c9e54bd7145af04b36a1e36e5988.tar.gz
tracifyjs-5e314bf3e934c9e54bd7145af04b36a1e36e5988.zip
SpiderMonkey `Identifier` nodes should contain mangled names.
Diffstat (limited to 'lib/mozilla-ast.js')
-rw-r--r--lib/mozilla-ast.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/mozilla-ast.js b/lib/mozilla-ast.js
index 0d2259de..7f0995c0 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
};
});