Skip to content

Commit 58a6c49

Browse files
committed
Duktape: Follow correct behavior for Context#call
1 parent 12afcd2 commit 58a6c49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/execjs/duktape_runtime.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ def eval(source, options = {})
2626
end
2727

2828
def call(identifier, *args)
29-
@ctx.call_prop(identifier.split("."), *args)
29+
@ctx.exec_string("__execjs_duktape_call = #{identifier}", '(execjs)')
30+
@ctx.call_prop("__execjs_duktape_call", *args)
3031
rescue Exception => e
3132
raise wrap_error(e)
3233
end

0 commit comments

Comments
 (0)