1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

mental note, exception handling across Ruby/C++ boundaries is dangerous.

This commit is contained in:
Charles Lowell 2010-05-23 21:32:23 +03:00
parent 4e94ff71bd
commit 643ae12ae6

View file

@ -32,6 +32,9 @@ module V8
for i in 0..arguments.Length() - 1
rbargs << To.ruby(arguments[i])
end
#TODO: we need to catch ruby exceptions here and
#rethrow them as javascript exceptions in case
#we're embedded in a C++ stack. --cowboyd May 23rd 2010
To.v8(value.call(*rbargs))
end
return template.GetFunction()