From f14b0af26416cd24026c6c3c905dc8c553b3d36f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 9 Sep 2026 00:58:16 +0000 Subject: [PATCH 1/2] Initial plan From b35a5418aca538c5d435ae1e991f158b334d0c10 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 9 Sep 2026 01:00:34 +0000 Subject: [PATCH 2/2] Fix wasm import linkage for callback symbols Co-authored-by: bomsy <792924+bomsy@users.noreply.github.com> --- wasm-mappings/source-map-mappings-wasm-api/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wasm-mappings/source-map-mappings-wasm-api/src/lib.rs b/wasm-mappings/source-map-mappings-wasm-api/src/lib.rs index d91ed381..225e77cc 100644 --- a/wasm-mappings/source-map-mappings-wasm-api/src/lib.rs +++ b/wasm-mappings/source-map-mappings-wasm-api/src/lib.rs @@ -43,6 +43,7 @@ mod observer { impl Default for $name { #[inline] fn default() -> $name { + #[cfg_attr(target_arch = "wasm32", link(wasm_import_module = "env"))] extern "C" { fn $ctor(); } @@ -56,6 +57,7 @@ mod observer { impl Drop for $name { #[inline] fn drop(&mut self) { + #[cfg_attr(target_arch = "wasm32", link(wasm_import_module = "env"))] extern "C" { fn $dtor(); } @@ -251,6 +253,7 @@ unsafe fn mappings_mut<'a>( mappings.as_mut().unwrap() } +#[cfg_attr(target_arch = "wasm32", link(wasm_import_module = "env"))] extern "C" { fn mapping_callback( // These two parameters are always valid.