1
0
Fork 0
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:
Magnus Holm 2018-06-02 21:53:36 +02:00
parent 12afcd2696
commit 58a6c49a66

View file

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