mirror of
https://github.com/rails/execjs
synced 2023-03-27 23:21:20 -04:00
Duktape: Follow correct behavior for Context#call
This commit is contained in:
parent
12afcd2696
commit
58a6c49a66
1 changed files with 2 additions and 1 deletions
|
@ -26,7 +26,8 @@ module ExecJS
|
||||||
end
|
end
|
||||||
|
|
||||||
def call(identifier, *args)
|
def call(identifier, *args)
|
||||||
@ctx.call_prop(identifier.split("."), *args)
|
@ctx.exec_string("__execjs_duktape_call = #{identifier}", '(execjs)')
|
||||||
|
@ctx.call_prop("__execjs_duktape_call", *args)
|
||||||
rescue Exception => e
|
rescue Exception => e
|
||||||
raise wrap_error(e)
|
raise wrap_error(e)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue