From 2cab34834191ea4fb48059e5725b631ff2752aa4 Mon Sep 17 00:00:00 2001 From: kzc Date: Sat, 13 Jan 2018 12:40:51 -0500 Subject: 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. --- lib/scope.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/scope.js') 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) { -- cgit v1.2.3