Skip to content

Commit

Permalink
Fix command completion under nodejs v6.9.1 (#4402)
Browse files Browse the repository at this point in the history
* Fix command completion under nodejs v6.9.1
Closes #4397

* Commit updated compiled version
  • Loading branch information
mdcb authored and GeoffreyBooth committed Dec 16, 2016
1 parent 8117418 commit 07d6eb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/coffee-script/repl.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/repl.coffee
Expand Up @@ -15,6 +15,9 @@ replDefaults =
# Node's REPL sends the input ending with a newline and then wrapped in
# parens. Unwrap all that.
input = input.replace /^\(([\s\S]*)\n\)$/m, '$1'
# Node's REPL v6.9.1+ sends the input wrapped in a try/catch statement.
# Unwrap that too.
input = input.replace /^\s*try\s*{([\s\S]*)}\s*catch.*$/m, '$1'

# Require AST nodes to do some AST manipulation.
{Block, Assign, Value, Literal} = require './nodes'
Expand Down

0 comments on commit 07d6eb6

Please sign in to comment.