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

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

從 crates/spidermonkey-embedding-splicer/src/bindgen.rs 第 857 行開始,使用匯入 map 的 WIT 介面重現 panic。追蹤該輸入所到達的 bindgen 路徑,並在需要時使用 RUST_BACKTRACE=1。完成標準是 ComponentizeJS 能夠處理 component model 的 map 型別,而不會因無法到達的程式碼觸發 panic。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
rust, wasm
領域
tooling
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
冷清
描述清晰度
基本清楚
新手友好度
52/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。