Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Add APIs for introspection of imports

Aperta
#4,643 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
c, javascript, typescript, wasm
Ambito
api, compilers

Direzione di ricerca

Inizia ispezionando le API C e JS/TS rivolte verso l’esterno che attualmente enumerano gli export, quindi confronta il modo in cui sono rappresentate le funzioni importate, le tabelle, le memorie e gli altri oggetti. Il lavoro è completato quando i chiamanti possono eseguire direttamente l’introspezione degli import, determinare se la memoria è importata e i metadati aggiuntivi tracciati nell’issue 3573 sono inclusi.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

As of right now, the current outward facing API (C, JS/TS, etc) allows you to enumerate all exports in a WASM module. These can be further introspected to get more specific info about that export.

However, there is no affordance for this on imports. This means the only real option is to enumerate all functions and see if each function is an import, enumerate all tables, etc. This is less than ideal.

In addition, for some reason there doesn't appear to be any way to determine whether memory is imported or not through the exposed APIs. There is also some additional metadata that would be useful on a few different object types that you can't get through the exposed APIs, which is tracked here: https://github.com/WebAssembly/binaryen/issues/3573. There a PR that was opened for that a while back but it looks like work on it stalled out before being merged.

Lingua principale
WebAssembly
Stelle
8.6k
Fork
885
Merge medio
2g 4h
PR unite (30g)
77

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di WebAssembly/binaryen

Tutte le issue di WebAssembly/binaryen

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.