aboutsummaryrefslogtreecommitdiff
path: root/js/lib
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-09 19:55:29 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-09 19:55:29 -0800
commit054fea748f5b6aae9043925abf9b66991cd51887 (patch)
treec50cbf2b3d068c1a28b7c1a2d945fb99998d0704 /js/lib
parent85dc5b4171bfd71b0737aed7039deb5cc750a405 (diff)
Put limit on AST display as string.
(AST itself has no nesting limits. BUt this prevents a crash due to recursion in util.inspect.) See #272.
Diffstat (limited to 'js/lib')
-rwxr-xr-xjs/lib/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/lib/index.js b/js/lib/index.js
index f1023c1..8b26946 100755
--- a/js/lib/index.js
+++ b/js/lib/index.js
@@ -14,7 +14,7 @@
var util = require('util');
var renderAST = function(tree) {
- return util.inspect(tree.toAST(), {depth: null});
+ return util.inspect(tree.toAST(), {depth: 20});
};
module.exports.Node = require('./node');