summaryrefslogtreecommitdiffstats
path: root/js/src/wasm/WasmBinary.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:43:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:43:14 +0000
commit8dd16259287f58f9273002717ec4d27e97127719 (patch)
tree3863e62a53829a84037444beab3abd4ed9dfc7d0 /js/src/wasm/WasmBinary.h
parentReleasing progress-linux version 126.0.1-1~progress7.99u1. (diff)
downloadfirefox-8dd16259287f58f9273002717ec4d27e97127719.tar.xz
firefox-8dd16259287f58f9273002717ec4d27e97127719.zip
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'js/src/wasm/WasmBinary.h')
-rw-r--r--js/src/wasm/WasmBinary.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/src/wasm/WasmBinary.h b/js/src/wasm/WasmBinary.h
index da17a0a864..4176b3d8c2 100644
--- a/js/src/wasm/WasmBinary.h
+++ b/js/src/wasm/WasmBinary.h
@@ -709,7 +709,8 @@ inline bool Decoder::readPackedType(const TypeContext& types,
*type = RefType::fromTypeCode(TypeCode(code), true);
return true;
}
- case uint8_t(TypeCode::ExnRef): {
+ case uint8_t(TypeCode::ExnRef):
+ case uint8_t(TypeCode::NullExnRef): {
if (!features.exnref) {
return fail("exnref not enabled");
}
@@ -792,7 +793,8 @@ inline bool Decoder::readHeapType(const TypeContext& types,
case uint8_t(TypeCode::ExternRef):
*type = RefType::fromTypeCode(TypeCode(code), nullable);
return true;
- case uint8_t(TypeCode::ExnRef): {
+ case uint8_t(TypeCode::ExnRef):
+ case uint8_t(TypeCode::NullExnRef): {
if (!features.exnref) {
return fail("exnref not enabled");
}