Skip to content

wat2wasm demo seems a little outdated #2711

@Sainan

Description

@Sainan

https://webassembly.github.io/wabt/demo/wat2wasm/ errors on the following code even with exceptions checked on:

(module
  (tag $e0)
  (func (export "simple-throw-catch") (param i32) (result i32)
    (block $h
      (try_table (result i32) (catch $e0 $h)
        (if (i32.eqz (local.get 0)) (then (throw $e0)) (else))
        (i32.const 42)
      )
      (return)
    )
    (i32.const 23)
  )
)

but the downloaded wat2wasm with --enable-exceptions handles this fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions