diff options
author | Ingvar Stepanyan <me@rreverser.com> | 2014-08-03 01:28:58 +0300 |
---|---|---|
committer | Ingvar Stepanyan <me@rreverser.com> | 2014-08-03 01:28:58 +0300 |
commit | 5e314bf3e934c9e54bd7145af04b36a1e36e5988 (patch) | |
tree | cdbca9346ba00184a1abfa33d7f2967fe832825a /lib/mozilla-ast.js | |
parent | 05ba26c7c8b96bddeb7b97ef42b5c03283b8e72e (diff) | |
download | tracifyjs-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.js | 3 |
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 }; }); |