mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
added warning that we need node 0.8+ to run repl
remove unnecessary parens and else statement in repl we do this by convention of the main coffee source fix: exit should be process.exit compiled and build full
This commit is contained in:
@@ -78,6 +78,12 @@ addMultilineHandler = (repl) ->
|
||||
|
||||
module.exports =
|
||||
start: (opts = {}) ->
|
||||
[major, minor, build] = process.version[1..].split('.').map (n) -> parseInt(n)
|
||||
|
||||
if major is 0 and minor <= 7
|
||||
console.warn "Node 0.8.0+ required for coffeescript REPL"
|
||||
process.exit 1
|
||||
|
||||
opts = merge replDefaults, opts
|
||||
repl = nodeREPL.start opts
|
||||
repl.on 'exit', -> repl.outputStream.write '\n'
|
||||
|
||||
Reference in New Issue
Block a user