mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-01-14 09:17:55 -05:00
REPL tests based on direct interaction with input and output stream. Includes multiline tests.
This commit is contained in:
@@ -54,7 +54,7 @@ addMultilineHandler = (repl) ->
|
||||
rli.prompt true
|
||||
return
|
||||
# no-op unless the current line is empty
|
||||
return unless rli.line.match /^\s*$/
|
||||
return unless not rli.line? or rli.line.match /^\s*$/
|
||||
# eval, print, loop
|
||||
multiline.enabled = not multiline.enabled
|
||||
rli.line = ''
|
||||
|
||||
Reference in New Issue
Block a user