From 9d7630889d8461366ea7f73eef3ebced102590de Mon Sep 17 00:00:00 2001 From: Dav Glass Date: Thu, 24 Feb 2011 15:33:23 -0600 Subject: [PATCH] Added Infinity to the .io console output --- bin/yui-repl.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/yui-repl.js b/bin/yui-repl.js index 5d017db..8d46109 100755 --- a/bin/yui-repl.js +++ b/bin/yui-repl.js @@ -14,6 +14,7 @@ Y.toString = function() { }; var repl = replServer.start('YUI@' + Y.version + '> '); + var ctx = repl.context; ctx.Y = Y; @@ -36,6 +37,8 @@ var load = function(url) { }); }; + + repl.defineCommand('import', { help: 'Import a document into this context', action: load @@ -83,7 +86,7 @@ repl.defineCommand('io', { self.outputStream.write(' [done]\n'.white); var str; try { - str = util.inspect(JSON.parse(e.responseText), false, 1, true); + str = util.inspect(JSON.parse(e.responseText), false, Infinity, true); } catch (e) { str = e.responseText }