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
|
begin
|
||||||
To.v8(rubycode.call(*args))
|
To.v8(rubycode.call(*args))
|
||||||
rescue Exception => e
|
rescue Exception => e
|
||||||
error = V8::C::Exception::Error(V8::C::String::New(e.message))
|
case e
|
||||||
error.SetHiddenValue("TheRubyRacer::Cause", C::External::New(e))
|
when SystemExit, NoMemoryError
|
||||||
V8::C::ThrowException(error)
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue