1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

fixes #2239: REPL didn't accept expressions that were just comments

This commit is contained in:
Michael Ficarra 2012-04-05 18:10:05 -04:00
parent 22db7ae85a
commit b4e1e54cf7
2 changed files with 2 additions and 2 deletions

View file

@ -114,7 +114,7 @@
backlog = '';
try {
_ = global._;
returnValue = CoffeeScript["eval"]("_=(" + code + "\n)", {
returnValue = CoffeeScript["eval"]("_=(undefined\n" + code + "\n)", {
filename: 'repl',
modulename: 'repl'
});

View file

@ -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'
}