Last active
December 23, 2017 15:20
Revisions
-
Cristi Burcă revised this gist
Jan 28, 2014 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,5 @@ // Usage: require('repl').start.call(this); // Press Ctrl+D to continue script // Press Ctrl+C to exit. require = patchRequire(require); @@ -15,6 +16,10 @@ exports.start = function(prompt) { system.stdout.write(prompt); line = system.stdin.readLine(); if (system.stdin.atEnd()) { break; } try { _ = eval(line); console.log(_); -
Cristi Burcă revised this gist
Jan 28, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -17,7 +17,7 @@ exports.start = function(prompt) { try { _ = eval(line); console.log(_); } catch (e) { console.log(e); } -
Cristi Burcă created this gist
Jan 27, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,25 @@ // Usage: require('repl').start.call(this); // Press Ctrl+C to exit. require = patchRequire(require); var system = require('system'); var utils = require('utils'); exports.start = function(prompt) { prompt = prompt || '> '; var line, _; do { system.stdout.write(prompt); line = system.stdin.readLine(); try { _ = eval(line); utils.dump(_); } catch (e) { console.log(e); } } while (true); }