summaryrefslogtreecommitdiff
path: root/src/binary-reader.cc
diff options
context:
space:
mode:
authorBen Smith <binji@chromium.org>2020-04-14 08:47:42 -0700
committerGitHub <noreply@github.com>2020-04-14 08:47:42 -0700
commit10a9b0563efea0ab00abf6846c0ebcb53f492404 (patch)
tree7f328712e00ca50e7b7a90483e34d2803e29b811 /src/binary-reader.cc
parent343d24bf620594c985065d193bde2c3fc282a53e (diff)
downloadwabt-10a9b0563efea0ab00abf6846c0ebcb53f492404.tar.gz
wabt-10a9b0563efea0ab00abf6846c0ebcb53f492404.tar.bz2
wabt-10a9b0563efea0ab00abf6846c0ebcb53f492404.zip
Add exnref value type to parser (#1389)
The exnref type was already supported in the type checker, and other parts of the code, but there was no way to name the type in the text format. This PR also fixes makes binary-reader.cc check for just the exceptions_enabled flag to enable exnref. The exception-handling proposal depends on the reference types proposal, but that is now handled at a higher level, in the `UpdateDependencies` function. Fixes issue #1388.
Diffstat (limited to 'src/binary-reader.cc')
-rw-r--r--src/binary-reader.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/binary-reader.cc b/src/binary-reader.cc
index 0182810e..32116a5c 100644
--- a/src/binary-reader.cc
+++ b/src/binary-reader.cc
@@ -407,8 +407,7 @@ bool BinaryReader::IsConcreteType(Type type) {
return options_.features.reference_types_enabled();
case Type::Exnref:
- return options_.features.reference_types_enabled() &&
- options_.features.exceptions_enabled();
+ return options_.features.exceptions_enabled();
default:
return false;