Skip to content

Commit

Permalink
test: call exported function in imported function callback
Browse files Browse the repository at this point in the history
  • Loading branch information
ionull committed Aug 29, 2024
1 parent b5b9837 commit ccc3449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/wasmex_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ defmodule WasmexTest do

imports = %{
env: %{add_import: {:fn, [:i32, :i32], [:i32], fn %{instance: instance, caller: caller}, a, b ->
Wasmex.Instance.call_exported_function(caller, instance, "call_add", [a,b],:from)
Wasmex.Instance.call_exported_function(caller, instance, "call_add", [a,b], :from)
receive do {
:returned_function_call, {:ok, [result]}, :from} -> :ok
result
Expand Down

0 comments on commit ccc3449

Please sign in to comment.