Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions crates/js-component-bindgen/src/function_bindgen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ impl FunctionBindgenComponentState {
},
get_realloc_fn: match self.realloc_fn_idx {
Some(idx) => format!("() => realloc{}", idx.as_u32()),
None => "() => null".into(),
None => "undefined".into(),
},
}
}
Expand Down Expand Up @@ -2923,7 +2923,7 @@ impl Bindgen for FunctionBindgen<'_> {
} = state.get_js_exprs();
(component_idx, get_realloc_fn)
} else {
("-1".into(), "() => null".into())
("-1".into(), "undefined".into())
};

uwriteln!(
Expand Down Expand Up @@ -3241,7 +3241,7 @@ impl Bindgen for FunctionBindgen<'_> {
} = state.get_js_exprs();
(component_idx, get_realloc_fn)
} else {
("-1".into(), "() => null".into())
("-1".into(), "undefined".into())
};

let tmp = self.tmp();
Expand Down
Loading