Skip to content

Commit 95b0742

Browse files
fix: arg order for splice bindings
1 parent 18d7fed commit 95b0742

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ fn main() -> Result<()> {
134134
let features = map_features(&features)?;
135135

136136
let result =
137-
splice::splice_bindings(engine, features, world_name, wit_path_str, None, debug)
137+
splice::splice_bindings(engine, features, None, wit_path_str, world_name, debug)
138138
.map_err(|e| anyhow::anyhow!(e))?;
139139

140140
fs::write(&out_dir.join("component.wasm"), result.wasm).with_context(|| {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ use crate::{bindgen, map_core_fn, parse_wit, splice};
3333
pub fn splice_bindings(
3434
engine: Vec<u8>,
3535
features: Vec<Features>,
36-
world_name: Option<String>,
37-
wit_path: Option<String>,
3836
wit_source: Option<String>,
37+
wit_path: Option<String>,
38+
world_name: Option<String>,
3939
debug: bool,
4040
) -> Result<SpliceResult, String> {
4141
let (mut resolve, id) = match (wit_source, wit_path) {

crates/splicer-component/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ impl Guest for SpidermonkeyEmbeddingSplicerComponent {
2121
fn splice_bindings(
2222
engine: Vec<u8>,
2323
features: Vec<Features>,
24-
world_name: Option<String>,
25-
wit_path: Option<String>,
2624
wit_source: Option<String>,
25+
wit_path: Option<String>,
26+
world_name: Option<String>,
2727
debug: bool,
2828
) -> Result<SpliceResult, String> {
29-
splice::splice_bindings(engine, features, world_name, wit_path, wit_source, debug)
29+
splice::splice_bindings(engine, features, wit_source, wit_path, world_name, debug)
3030
}
3131
}
3232

0 commit comments

Comments
 (0)