Skip to content

Commit

Permalink
Added Infinity to the .io console output
Browse files Browse the repository at this point in the history
  • Loading branch information
davglass committed Feb 24, 2011
1 parent 6526d0e commit 9d76308
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/yui-repl.js
Expand Up @@ -14,6 +14,7 @@ Y.toString = function() {
}; };


var repl = replServer.start('YUI@' + Y.version + '> '); var repl = replServer.start('YUI@' + Y.version + '> ');

var ctx = repl.context; var ctx = repl.context;
ctx.Y = Y; ctx.Y = Y;


Expand All @@ -36,6 +37,8 @@ var load = function(url) {
}); });
}; };




repl.defineCommand('import', { repl.defineCommand('import', {
help: 'Import a document into this context', help: 'Import a document into this context',
action: load action: load
Expand Down Expand Up @@ -83,7 +86,7 @@ repl.defineCommand('io', {
self.outputStream.write(' [done]\n'.white); self.outputStream.write(' [done]\n'.white);
var str; var str;
try { try {
str = util.inspect(JSON.parse(e.responseText), false, 1, true); str = util.inspect(JSON.parse(e.responseText), false, Infinity, true);
} catch (e) { } catch (e) {
str = e.responseText str = e.responseText
} }
Expand Down

0 comments on commit 9d76308

Please sign in to comment.