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:
parent
b483beb493
commit
bd3acebdc5
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue