summaryrefslogtreecommitdiff
path: root/src/wasm-binary.h
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2022-05-04 17:50:29 -0700
committerGitHub <noreply@github.com>2022-05-04 17:50:29 -0700
commit996cbd861c0cae4c942cc57b1915af5ea7b4d5f5 (patch)
treee0318d1a61c31a8498b8a68e3e175758800deb5b /src/wasm-binary.h
parentef4011c665f225f895861ce555c9347eb505c89f (diff)
downloadbinaryen-996cbd861c0cae4c942cc57b1915af5ea7b4d5f5.tar.gz
binaryen-996cbd861c0cae4c942cc57b1915af5ea7b4d5f5.tar.bz2
binaryen-996cbd861c0cae4c942cc57b1915af5ea7b4d5f5.zip
Parse the prototype nominal binary format (#4644)
In f124a11ca3 we removed support for the prototype nominal binary format entirely, but that means that we can no longer parse older binary modules that used that format. Fix this regression by restoring the ability to parse the prototype binary format.
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r--src/wasm-binary.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h
index 62c2f7af2..12deeacab 100644
--- a/src/wasm-binary.h
+++ b/src/wasm-binary.h
@@ -382,6 +382,10 @@ enum EncodedType {
Struct = -0x21, // 0x5f
Array = -0x22, // 0x5e
Sub = -0x30, // 0x50
+ // prototype nominal forms we still parse
+ FuncSubtype = -0x23, // 0x5d
+ StructSubtype = -0x24, // 0x5c
+ ArraySubtype = -0x25, // 0x5b
// isorecursive recursion groups
Rec = -0x31, // 0x4f
// block_type