diff --git a/support-lib/wasm/Future_wasm.hpp b/support-lib/wasm/Future_wasm.hpp index ac501289..8b70a864 100644 --- a/support-lib/wasm/Future_wasm.hpp +++ b/support-lib/wasm/Future_wasm.hpp @@ -96,6 +96,7 @@ class FutureAdaptor void doResolve() { try { if constexpr (std::is_void_v) { + _future->get(); _resolveFunc(em::val::undefined()); } else { _resolveFunc(RESULT::Boxed::fromCpp(_future->get()));