summaryrefslogtreecommitdiff
path: root/src/binaryen-c.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/binaryen-c.cpp')
-rw-r--r--src/binaryen-c.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/binaryen-c.cpp b/src/binaryen-c.cpp
index 2ae3da650..aa94d1d30 100644
--- a/src/binaryen-c.cpp
+++ b/src/binaryen-c.cpp
@@ -2486,9 +2486,9 @@ int BinaryenModuleValidate(BinaryenModuleRef module) {
}
Module* wasm = (Module*)module;
- // TODO add feature selection support to C API
- FeatureSet features = FeatureSet::All;
- return WasmValidator().validate(*wasm, features) ? 1 : 0;
+ // TODO(tlively): Add C API for managing features
+ wasm->features = FeatureSet::All;
+ return WasmValidator().validate(*wasm) ? 1 : 0;
}
void BinaryenModuleOptimize(BinaryenModuleRef module) {