From a1eb7bc9b0a8c96288c4d0dc90c7a2cd86b989c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Vouillon?= Date: Wed, 6 Mar 2024 23:25:11 +0100 Subject: [PATCH] Effects/runtime: export the current suspender --- runtime/wasm/effect.wat | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/wasm/effect.wat b/runtime/wasm/effect.wat index adb2a4f5f..299024bf1 100644 --- a/runtime/wasm/effect.wat +++ b/runtime/wasm/effect.wat @@ -43,7 +43,8 @@ (import "bindings" "resume_fiber" (func $resume_fiber (param externref) (param (ref eq)))) - (global $current_suspender (mut (externref)) (ref.null extern)) + (global $current_suspender (export "current_suspender") + (mut (externref)) (ref.null extern)) ;; Capturing the current continuation