Skip to content

Commit 5f74d5b

Browse files
feat: blocking host reentrant calls
Signed-off-by: Henry <mail@henrygressmann.de>
1 parent 8ec1231 commit 5f74d5b

11 files changed

Lines changed: 287 additions & 114 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased]
9+
10+
### Added
11+
12+
- Added blocking reentrant Wasm calls from host functions through `FuncContext::call` and `FuncContext::call_untyped`.
13+
14+
### Fixed
15+
16+
- Direct `Function::call` and `Function::call_resumable` calls during an active invocation now trap instead of corrupting the active call/value stacks
17+
818
## [0.9.0] - 2026-05-05
919

1020
**All Commits**: https://github.com/explodingcamera/tinywasm/compare/v0.8.0...v0.9.0

‎Cargo.lock‎

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎crates/tinywasm/src/error.rs‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@ impl LinkingError {
9696
}
9797
}
9898

99+
impl Error {
100+
pub(crate) fn other(message: impl Into<String>) -> Self {
101+
Self::Other(message.into())
102+
}
103+
}
104+
99105
/// A WebAssembly trap
100106
///
101107
/// See <https://webassembly.github.io/spec/core/intro/overview.html#trap>

0 commit comments

Comments
 (0)