Skip to content

Support transpile for fixed size lists #1240

@yannbolliger

Description

@yannbolliger

Transpiling a WIT component that has fixed size lists e.g. list<u8, 32> in its interface currently fails with:

npx jco transpile some.wasm -o src/generated --no-namespaced-exports

(jco transpile) ComponentError: failed to translate component

Caused by:
    Fixed size lists require the component model fixed size list feature (at offset 0x77c8d)
    at generate (file:///.../node_modules/@bytecodealliance/jco/obj/js-component-bindgen-component.js:8092:11)
    at transpileComponent (file:///.../node_modules/@bytecodealliance/jco/src/cmd/transpile.js:202:39)
    at async transpile (file:///.../node_modules/@bytecodealliance/jco/src/cmd/transpile.js:73:23)
    at async file:///.../node_modules/@bytecodealliance/jco/src/jco.js:485:1

component generated with: wit-bindgen = "0.52"
version: "@bytecodealliance/jco": "^1.16.0",

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions