Swapping == with <, just in case.

This commit is contained in:
Timothy Jones
2011-01-23 00:54:43 +13:00
parent 2c8e0a6914
commit f231809e22
2 changed files with 7 additions and 7 deletions

View File

@@ -78,13 +78,13 @@
return _results;
};
process.on('uncaughtException', error);
if (readline.createInterface.length === 3) {
repl = readline.createInterface(stdin, stdout, autocomplete);
} else {
if (readline.createInterface.length < 2) {
repl = readline.createInterface(stdin, autocomplete);
stdin.on('data', function(buffer) {
return repl.write(buffer);
});
} else {
repl = readline.createInterface(stdin, stdout, autocomplete);
}
repl.setPrompt('coffee> ');
repl.on('close', function() {

View File

@@ -77,11 +77,11 @@ getPropertyNames = (obj) ->
process.on 'uncaughtException', error
# Create the REPL by listening to **stdin**.
if readline.createInterface.length == 3
repl = readline.createInterface stdin, stdout, autocomplete
else
if readline.createInterface.length < 3
repl = readline.createInterface stdin, autocomplete
stdin.on 'data', (buffer) -> repl.write buffer
stdin.on 'data', (buffer) -> repl.write buffer
else
repl = readline.createInterface stdin, stdout, autocomplete
repl.setPrompt 'coffee> '
repl.on 'close', -> stdin.destroy()