diff options
Diffstat (limited to 'src/tools/wasm-dis.cpp')
-rw-r--r-- | src/tools/wasm-dis.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tools/wasm-dis.cpp b/src/tools/wasm-dis.cpp index fc07b771d..cca87514a 100644 --- a/src/tools/wasm-dis.cpp +++ b/src/tools/wasm-dis.cpp @@ -60,6 +60,7 @@ int main(int argc, const char* argv[]) { std::cerr << "parsing binary..." << std::endl; } Module wasm; + options.applyFeatures(wasm); try { ModuleReader().readBinary(options.extra["infile"], wasm, sourceMapFilename); } catch (ParseException& p) { @@ -72,8 +73,6 @@ int main(int argc, const char* argv[]) { Fatal() << "error in parsing wasm source mapping"; } - options.applyFeatures(wasm); - // TODO: Validation. However, validating would mean that users are forced to // run with wasm-dis -all or such, to enable the features (unless the // features section is present, but that's rare in general). It would be |