summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-binary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm/wasm-binary.cpp')
-rw-r--r--src/wasm/wasm-binary.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wasm/wasm-binary.cpp b/src/wasm/wasm-binary.cpp
index f087e3e4b..263f905fb 100644
--- a/src/wasm/wasm-binary.cpp
+++ b/src/wasm/wasm-binary.cpp
@@ -1101,6 +1101,8 @@ void WasmBinaryWriter::writeFeaturesSection() {
return BinaryConsts::UserSections::RelaxedSIMDFeature;
case FeatureSet::ExtendedConst:
return BinaryConsts::UserSections::ExtendedConstFeature;
+ case FeatureSet::Strings:
+ return BinaryConsts::UserSections::StringsFeature;
default:
WASM_UNREACHABLE("unexpected feature flag");
}
@@ -3416,6 +3418,8 @@ void WasmBinaryBuilder::readFeatures(size_t payloadLen) {
feature = FeatureSet::RelaxedSIMD;
} else if (name == BinaryConsts::UserSections::ExtendedConstFeature) {
feature = FeatureSet::ExtendedConst;
+ } else if (name == BinaryConsts::UserSections::StringsFeature) {
+ feature = FeatureSet::Strings;
} else {
// Silently ignore unknown features (this may be and old binaryen running
// on a new wasm).