1
0
Fork 0
mirror of https://github.com/rails/execjs synced 2023-03-27 23:21:20 -04:00

Rescue internal errors

This commit is contained in:
Joshua Peek 2014-12-09 15:01:17 -08:00
parent df33657dfd
commit bf982dd333

View file

@ -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)