Browse files

Remove unnecessary eval arguments.

  • Loading branch information...
1 parent 0ca0404 commit 178494140c5fea6718e3f5a4e8621a242d14b213 @amasad amasad committed Apr 18, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 langs/coffee-script/jsrepl_coffee.coffee
View
6 langs/coffee-script/jsrepl_coffee.coffee
@@ -16,16 +16,16 @@ class self.JSREPLEngine
Eval: (command) ->
try
compiled = @CoffeeScript.compile command, globals: on, bare: on
- result = @sandbox.__eval compiled, globals: on, bare: on
+ result = @sandbox.__eval compiled
@result if result == undefined then '' else @inspect result
catch e
@error e
RawEval: (command) ->
try
compiled = @CoffeeScript.compile command, globals: on, bare: on
- result = @sandbox.__eval compiled, globals: on, bare: on
- @result if result == undefined then '' else @inspect result
+ result = @sandbox.__eval compiled
+ @result result
catch e
@error e

0 comments on commit 1784941

Please sign in to comment.