mirror of
https://github.com/rails/execjs
synced 2023-03-27 23:21:20 -04:00
Rescue internal errors
This commit is contained in:
parent
df33657dfd
commit
bf982dd333
1 changed files with 2 additions and 0 deletions
|
@ -23,6 +23,8 @@ module ExecJS
|
|||
raise RuntimeError, e.message
|
||||
rescue Duktape::Error => e
|
||||
raise ProgramError, e.message
|
||||
rescue Duktape::InternalError => e
|
||||
raise RuntimeError, e.message
|
||||
end
|
||||
|
||||
def call(identifier, *args)
|
||||
|
|
Loading…
Add table
Reference in a new issue