bytecodealliance / bytecodealliance/ComponentizeJS

Support component model `map<K, V>`

Ouverte
#344 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Rust
Étoiles
391
Forks
53
Merge moyen
3 j 5 h
PR mergées (30 j)
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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Commencez dans crates/spidermonkey-embedding-splicer/src/bindgen.rs à la ligne 857 et reproduisez le panic avec une interface WIT qui importe map. Suivez le chemin de bindgen atteint par cette entrée et utilisez RUST_BACKTRACE=1 si nécessaire. C'est terminé lorsque ComponentizeJS gère le type map du component model sans le panic dû au code inaccessible.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
rust, wasm
Domaine
tooling
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
Calme
Clarté
Plutôt claire
Accessibilité débutants
52/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.