Skip to content

Commit

Permalink
fixes jashkenas#2239: REPL didn't accept expressions that were just c…
Browse files Browse the repository at this point in the history
…omments
  • Loading branch information
michaelficarra committed Apr 5, 2012
1 parent 22db7ae commit b4e1e54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/coffee-script/repl.js

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

2 changes: 1 addition & 1 deletion src/repl.coffee
Expand Up @@ -94,7 +94,7 @@ run = (buffer) ->
backlog = ''
try
_ = global._
returnValue = CoffeeScript.eval "_=(#{code}\n)", {
returnValue = CoffeeScript.eval "_=(undefined\n#{code}\n)", {
filename: 'repl'
modulename: 'repl'
}
Expand Down

0 comments on commit b4e1e54

Please sign in to comment.