diff options
author | kzc <kzc@users.noreply.github.com> | 2018-01-13 12:40:51 -0500 |
---|---|---|
committer | Alex Lam S.L <alexlamsl@gmail.com> | 2018-01-14 01:40:51 +0800 |
commit | 2cab34834191ea4fb48059e5725b631ff2752aa4 (patch) | |
tree | c8e71b73ee1c506fcd38df781739d6f4115c68c1 /lib/scope.js | |
parent | 460218a3f878fff658ca6c8e238f203866320b98 (diff) | |
download | tracifyjs-2cab34834191ea4fb48059e5725b631ff2752aa4.tar.gz tracifyjs-2cab34834191ea4fb48059e5725b631ff2752aa4.zip |
improve SymbolDef info in `--output ast` (#2778)
* SymbolDef info (a.k.a. `thedef`) is now represented as a string containing `"ID name [mangled_name]"`.
* Enhance display of `globals`, `variables`, `functions` and `enclosed`.
* `SymbolDef.next_id` starts at `1` and the `id` is adjusted for `-o ast` display.
Diffstat (limited to 'lib/scope.js')
-rw-r--r-- | lib/scope.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/scope.js b/lib/scope.js index 55b3ddbb..af852bb1 100644 --- a/lib/scope.js +++ b/lib/scope.js @@ -57,7 +57,7 @@ function SymbolDef(scope, orig, init) { this.id = SymbolDef.next_id++; }; -SymbolDef.next_id = 1e6; +SymbolDef.next_id = 1; SymbolDef.prototype = { unmangleable: function(options) { |