Last active
March 11, 2026 15:02
-
-
Save kripken/caca5c55970c6903448ba6c40fbf94f3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; $ bin/wasm-opt a.wat -all --closed-world --signature-pruning --roundtrip | |
| ;; [parse exception: incompatible continuation types in cont.bind: source type (type $cont.0 (cont $func.0)) has fewer parameters than target (type $cont.0 (cont $func.0)) (at 0:75)] | |
| ;; Fatal: error in parsing wasm binary | |
| (module | |
| (rec | |
| (type $0 (sub (struct))) | |
| (type $1 (func (param (ref null $0)) (result (ref null $0)))) | |
| (type $2 (func (param (ref null $0) (ref null $0) (ref null $0)) (result (ref null $0)))) | |
| (type $3 (cont $1)) | |
| (type $4 (cont $2)) | |
| ) | |
| (type $5 (func (result externref))) | |
| (export "box" (func $0)) | |
| (func $0 (result externref) | |
| (drop | |
| (cont.bind $4 $3 | |
| (ref.null none) | |
| (ref.as_non_null | |
| (ref.null none) | |
| ) | |
| (cont.new $4 | |
| (ref.func $1) | |
| ) | |
| ) | |
| ) | |
| (unreachable) | |
| ) | |
| (func $1 (type $2) (param $0 (ref null $0)) (param $1 (ref null $0)) (param $2 (ref null $0)) (result (ref null $0)) | |
| (unreachable) | |
| ) | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment