From ccc344944845853b3397251f6302cf7724f463b2 Mon Sep 17 00:00:00 2001 From: Tsung Wu Date: Thu, 29 Aug 2024 17:04:49 +0800 Subject: [PATCH] test: call exported function in imported function callback --- test/wasmex_test.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/wasmex_test.exs b/test/wasmex_test.exs index 4a21ea4..1b3760b 100644 --- a/test/wasmex_test.exs +++ b/test/wasmex_test.exs @@ -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