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:
parent
22db7ae85a
commit
b4e1e54cf7
2 changed files with 2 additions and 2 deletions
|
@ -114,7 +114,7 @@
|
|||
backlog = '';
|
||||
try {
|
||||
_ = global._;
|
||||
returnValue = CoffeeScript["eval"]("_=(" + code + "\n)", {
|
||||
returnValue = CoffeeScript["eval"]("_=(undefined\n" + code + "\n)", {
|
||||
filename: 'repl',
|
||||
modulename: 'repl'
|
||||
});
|
||||
|
|
|
@ -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'
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue