Skip to content

WASM to WAT support #14

@gustavohenke

Description

@gustavohenke

Hello!
Is it possible to convert a WASM file to WAT?
I tried opening very basic files, like this:
https://github.com/webpack/webpack/blob/8241da7f1e75c5581ba535d127fa66aeb9eb2ac8/examples/wasm-simple/add.wasm

and all I get is this garbled output:

Screenshot 2023-02-15 at 11 38 30

I have no problems running it from the terminal though:

$ wasm2wat add.wasm
(module
  (type (;0;) (func (param i32 i32) (result i32)))
  (func (;0;) (type 0) (param i32 i32) (result i32)
    local.get 0
    local.get 1
    i32.add)
  (export "add" (func 0)))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions