Skip to content

Commit

Permalink
Override toString for JSException.
Browse files Browse the repository at this point in the history
  • Loading branch information
omphalos committed Mar 29, 2013
1 parent 1429e8a commit 2b1ded7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/interpreter.coffee
Expand Up @@ -17,6 +17,7 @@ class YieldException extends InterpreterException

class JSException
constructor: (@error, @node, @env) ->
toString: -> @error.toString()

class StopIteration
constructor: (@value) ->
Expand Down

0 comments on commit 2b1ded7

Please sign in to comment.