mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
don't catch SystemExit, NoMemoryError
This commit is contained in:
parent
dce8dd027e
commit
adfe16d428
1 changed files with 8 additions and 3 deletions
|
@ -29,9 +29,14 @@ module V8
|
|||
begin
|
||||
To.v8(rubycode.call(*args))
|
||||
rescue Exception => e
|
||||
error = V8::C::Exception::Error(V8::C::String::New(e.message))
|
||||
error.SetHiddenValue("TheRubyRacer::Cause", C::External::New(e))
|
||||
V8::C::ThrowException(error)
|
||||
case e
|
||||
when SystemExit, NoMemoryError
|
||||
raise e
|
||||
else
|
||||
error = V8::C::Exception::Error(V8::C::String::New(e.message))
|
||||
error.SetHiddenValue("TheRubyRacer::Cause", C::External::New(e))
|
||||
V8::C::ThrowException(error)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue