1
0
Fork 0
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:
Charles Lowell 2010-06-15 23:05:40 +03:00
parent dce8dd027e
commit adfe16d428

View file

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