Skip to content

Commit 2be9340

Browse files
fix(bindgen): use of async enter
1 parent 89cac01 commit 2be9340

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/js-component-bindgen/src/function_bindgen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1442,7 +1442,7 @@ impl Bindgen for FunctionBindgen<'_> {
14421442
// TODO(threads): thread_func will contain the actual call rather than attempting to execute immediately
14431443

14441444
// If we're dealing with an async task, do explicit task enter
1445-
if self.requires_async_porcelain {
1445+
if self.is_async || self.requires_async_porcelain {
14461446
uwriteln!(
14471447
self.src,
14481448
r#"

0 commit comments

Comments
 (0)