Skip to content

Commit

Permalink
do not stub imports that are part of the target world (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
karthik2804 committed May 30, 2024
1 parent 519256f commit 63e3453
Show file tree
Hide file tree
Showing 4 changed files with 714 additions and 604 deletions.
10 changes: 8 additions & 2 deletions crates/spidermonkey-embedding-splicer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,14 @@ fn parse_wit(path: &Path) -> Result<(Resolve, PackageId)> {
}

impl Guest for SpidermonkeyEmbeddingSplicerComponent {
fn stub_wasi(wasm: Vec<u8>, features: Vec<Features>) -> Result<Vec<u8>, String> {
stub_wasi(wasm, features).map_err(|e| e.to_string())
fn stub_wasi(
wasm: Vec<u8>,
features: Vec<Features>,
wit_source: Option<String>,
wit_path: Option<String>,
world_name: Option<String>,
) -> Result<Vec<u8>, String> {
stub_wasi(wasm, features, wit_source, wit_path, world_name).map_err(|e| e.to_string())
}

fn splice_bindings(
Expand Down
Loading

0 comments on commit 63e3453

Please sign in to comment.