bytecodealliance / bytecodealliance/wit-bindgen

stack has 1 items remaining

Open
#1,477 10 comments 0 reactions 0 assignees View on GitHub
async
Dominant language
Rust
Stars
1.5k
Forks
286
Avg merge
6h 32m
Merged PRs (30d)
19

Description

I'm working on a new MoonBit implementation, and I wanted to add runner test for simple-call-import. However, I got this error :

```
stack has 1 items remaining: ["result"]
```

The emitted instructions are the following, which does not seem balanced to me.

```
CallWasm { name: "f", sig: WasmSignature { params: [], results: [I32], indirect_params: false, retptr: false } }
Return { amt: 0, func: Function { name: "f", kind: AsyncFreestanding, params: [], result: None, docs: Docs { contents: None }, stability: Unknown } }
```

To reproduce, with this commit: https://github.com/peter-jerry-ye/wit-bindgen/tree/0b4b5c35bd88b8caf080d69ce6ebd8c03dfcb861
```bash
cargo run test --languages moonbit,rust --artifacts target/artifacts ./tests/runtime-async/async/simple-call-import
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.