wasmerio/wasmer · error
Closures (functions with captured environments) are currentl
Error message
Closures (functions with captured environments) are currently unsupported with native functions. See: https://github.com/wasmerio/wasmer/issues/1840
What it means
Error "Closures (functions with captured environments) are currently unsupported with native functions. See: https://github.com/wasmerio/wasmer/issues/1840" thrown in wasmerio/wasmer.
Source
Thrown at lib/api/src/backend/js/entities/function/mod.rs:590
Self {
handle: internal.unwrap_js(),
}
}
pub(crate) fn vm_funcref(&self, _store: &impl AsStoreRef) -> VMFuncRef {
unimplemented!();
}
pub(crate) unsafe fn from_vm_funcref(
_store: &mut impl AsStoreMut,
_funcref: VMFuncRef,
) -> Self {
unimplemented!();
}
#[track_caller]
fn closures_unsupported_panic() -> ! {
unimplemented!(
"Closures (functions with captured environments) are currently unsupported with native functions. See: https://github.com/wasmerio/wasmer/issues/1840"
)
}
/// Checks whether this `Function` can be used with the given context.
pub fn is_from_store(&self, _store: &impl AsStoreRef) -> bool {
true
}
}
#[cfg(feature = "experimental-async")]
fn typed_args_from_values<Args>(
store: &mut StoreMut,
function_type: &FunctionType,
values: &[Value],
) -> Result<Args, RuntimeError>
where
Args: WasmTypeList,View on GitHub (pinned to 8c4b9ee9d3)
When it happens
Trigger: Thrown at lib/api/src/backend/js/entities/function/mod.rs:590 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of wasmerio/wasmer@8c4b9ee9d3 (2026-09-01).
Data as JSON: /api/errors/2559fe5c708bf7e7.
Report an issue: GitHub.