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:
parent
4e94ff71bd
commit
643ae12ae6
1 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue