bytecodealliance / bytecodealliance/ComponentizeJS

Support component model `map<K, V>`

Open
#344 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
391
Forks
53
Avg merge
3d 5h
Merged PRs (30d)
1

Description

A while back the component model introduced `map` (https://github.com/WebAssembly/component-model/pull/554). I have a WIT interface which imports this, which I think might be the cause for the following ComponentizeJS panic:

```
thread '' (1) panicked at crates/spidermonkey-embedding-splicer/src/bindgen.rs:857:18:
internal error: entered unreachable code
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
An error occured while building the WASI component: RuntimeError: unreachable
```

https://github.com/bytecodealliance/ComponentizeJS/blob/12c2b4a25033f65047f8ec5c5fb9e3013bfc4950/crates/spidermonkey-embedding-splicer/src/bindgen.rs#L857

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in crates/spidermonkey-embedding-splicer/src/bindgen.rs at line 857 and reproduce the panic with a WIT interface importing map. Trace the bindgen path reached by that input and use RUST_BACKTRACE=1 if needed. Done means ComponentizeJS handles the component-model map type without the unreachable-code panic.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, wasm
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.