Skip to content

Commit 9724188

Browse files
fix(bindgen): fix post return lookup
1 parent ff83221 commit 9724188

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1663,12 +1663,7 @@ impl<'a> Instantiator<'a, '_> {
16631663
.map(|v| (v.as_u32().to_string(), format!("callback_{}", v.as_u32())))
16641664
.unwrap_or_else(|| ("null".into(), "null".into()));
16651665
let (post_return_idx, post_return_fn) = post_return
1666-
.map(|v| {
1667-
(
1668-
v.as_u32().to_string(),
1669-
format!("post_return_{}", v.as_u32()),
1670-
)
1671-
})
1666+
.map(|v| (v.as_u32().to_string(), format!("postReturn{}", v.as_u32())))
16721667
.unwrap_or_else(|| ("null".into(), "null".into()));
16731668

16741669
// TODO: need to find the callee[adapter0] for this

packages/jco/test/p3/ported/wasmtime/component-async/post-return.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { buildAndTranspile, composeCallerCallee, COMPONENT_FIXTURES_DIR } from "
99
// In the upstream wasmtime repo, see:
1010
// wasmtime/crates/misc/component-async-tests/tests/scenario/post_return.rs
1111
//
12-
suite.skip('post-return scenario', () => {
12+
suite('post-return scenario', () => {
1313
test('caller & callee', async () => {
1414
const callerPath = join(
1515
COMPONENT_FIXTURES_DIR,

0 commit comments

Comments
 (0)