Permalink
Browse files

Added Infinity to the .io console output

  • Loading branch information...
davglass committed Feb 24, 2011
1 parent 6526d0e commit 9d7630889d8461366ea7f73eef3ebced102590de
Showing with 4 additions and 1 deletion.
  1. +4 −1 bin/yui-repl.js
View
@@ -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
}

0 comments on commit 9d76308

Please sign in to comment.