1
0
Fork 0
mirror of https://github.com/rubyjs/therubyrhino synced 2023-03-27 23:21:34 -04:00

change exception name to be compliant with the redjs spec

This commit is contained in:
Charles Lowell 2010-01-18 13:56:41 +02:00
parent b483beb493
commit bd3acebdc5

View file

@ -97,7 +97,7 @@ module Rhino
end
To.ruby result
rescue J::RhinoException => e
raise Rhino::RhinoError, e
raise Rhino::JavascriptError, e
end
end
end
@ -179,7 +179,7 @@ module Rhino
end
class RhinoError < StandardError # :nodoc:
class JavascriptError < StandardError # :nodoc:
def initialize(native)
@native = native
end