Skip to content

Instantly share code, notes, and snippets.

@austinbv
Created July 12, 2012 01:59
Show Gist options
  • Select an option

  • Save austinbv/3095173 to your computer and use it in GitHub Desktop.

Select an option

Save austinbv/3095173 to your computer and use it in GitHub Desktop.
var Timecop = require('./timecop'),
repl = require("repl");
repl.start({
prompt: '> ',
input: process.stdin,
output: process.stdout
});
/*
readline.js:121
var lines = prompt.split(/[\r\n]/);
^
TypeError: Object #<Object> has no method 'split'
at Interface.setPrompt (readline.js:121:24)
at new REPLServer (repl.js:128:7)
at Object.start (repl.js:251:14)
at Object.<anonymous> (/Users/austinbv/Dropbox/Documents/Programming/Timecop.js/repl.js:4:6)
at Module._compile (module.js:446:26)
at Object..js (module.js:464:10)
at Module.load (module.js:353:31)
at Function._load (module.js:311:12)
at Array.0 (module.js:484:10)
at EventEmitter._tickCallback (node.js:190:38)
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment