Skip to content

Commit 63e3453

Browse files
authored
do not stub imports that are part of the target world (#109)
1 parent 519256f commit 63e3453

4 files changed

Lines changed: 714 additions & 604 deletions

File tree

crates/spidermonkey-embedding-splicer/src/lib.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,14 @@ fn parse_wit(path: &Path) -> Result<(Resolve, PackageId)> {
9494
}
9595

9696
impl Guest for SpidermonkeyEmbeddingSplicerComponent {
97-
fn stub_wasi(wasm: Vec<u8>, features: Vec<Features>) -> Result<Vec<u8>, String> {
98-
stub_wasi(wasm, features).map_err(|e| e.to_string())
97+
fn stub_wasi(
98+
wasm: Vec<u8>,
99+
features: Vec<Features>,
100+
wit_source: Option<String>,
101+
wit_path: Option<String>,
102+
world_name: Option<String>,
103+
) -> Result<Vec<u8>, String> {
104+
stub_wasi(wasm, features, wit_source, wit_path, world_name).map_err(|e| e.to_string())
99105
}
100106

101107
fn splice_bindings(

0 commit comments

Comments
 (0)