Skip to content

Commit 18e0807

Browse files
authored
Comment on validation in wasm-dis (#3556)
1 parent ed9d1a1 commit 18e0807

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/tools/wasm-dis.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ int main(int argc, const char* argv[]) {
7474

7575
options.applyFeatures(wasm);
7676

77+
// TODO: Validation. However, validating would mean that users are forced to
78+
// run with wasm-dis -all or such, to enable the features (unless the
79+
// features section is present, but that's rare in general). It would be
80+
// better to have an "autodetect" code path that enables used features
81+
// eventually.
82+
7783
if (options.debug) {
7884
std::cerr << "Printing..." << std::endl;
7985
}

0 commit comments

Comments
 (0)