bytecodealliance / bytecodealliance/ComponentizeJS

Support component model `map<K, V>`

未关闭
#344 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Rust
星标
391
派生
53
平均合并
3 天 5 小时
30 天内合并 PR
1

描述

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

贡献指南

这个仓库没有索引到贡献指南

调研方向

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.

由索引模型根据 Issue 内容生成。

评估

技术栈
rust, wasm
领域
tooling
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
52/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。