mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
Merge branch 'master' into 2
# Conflicts: # Cakefile # documentation/sections/changelog.md # documentation/sections/classes.md # documentation/sections/fat_arrow.md # documentation/sections/installation.md # documentation/sections/introduction.md # documentation/sections/resources.md # documentation/sections/scripts.md # lib/coffeescript/repl.js # src/lexer.coffee
This commit is contained in:
@@ -69,6 +69,11 @@ testRepl "variables are saved", (input, output) ->
|
||||
eq "'foobar'", output.lastWrite()
|
||||
|
||||
testRepl "empty command evaluates to undefined", (input, output) ->
|
||||
# A regression fixed in Node 5.11.0 broke the handling of pressing enter in
|
||||
# the Node REPL; see https://github.com/nodejs/node/pull/6090 and
|
||||
# https://github.com/jashkenas/coffeescript/issues/4502.
|
||||
# Just skip this test for versions of Node < 6.
|
||||
return if parseInt(process.versions.node.split('.')[0], 10) < 6
|
||||
input.emitLine ''
|
||||
eq 'undefined', output.lastWrite()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user