summaryrefslogtreecommitdiff
path: root/src/wast-parser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/wast-parser.cc')
-rw-r--r--src/wast-parser.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wast-parser.cc b/src/wast-parser.cc
index 268a38d8..c4e64086 100644
--- a/src/wast-parser.cc
+++ b/src/wast-parser.cc
@@ -780,9 +780,11 @@ Result WastParser::ParseValueType(Type* out_type) {
case Type::Anyref:
case Type::Funcref:
case Type::Hostref:
- case Type::Exnref:
is_enabled = options_->features.reference_types_enabled();
break;
+ case Type::Exnref:
+ is_enabled = options_->features.exceptions_enabled();
+ break;
default:
is_enabled = true;
break;