summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/parser/wat-parser.cpp2
-rw-r--r--src/wasm/wasm-io.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/parser/wat-parser.cpp b/src/parser/wat-parser.cpp
index cc7d87540..fd18fbbe0 100644
--- a/src/parser/wat-parser.cpp
+++ b/src/parser/wat-parser.cpp
@@ -96,6 +96,8 @@ void propagateDebugLocations(Module& wasm) {
// do not already have their own debug locations.
PassRunner runner(&wasm);
runner.add("propagate-debug-locs");
+ // The parser should not be responsible for validation.
+ runner.setIsNested(true);
runner.run();
}
diff --git a/src/wasm/wasm-io.cpp b/src/wasm/wasm-io.cpp
index df1cc19f4..324637103 100644
--- a/src/wasm/wasm-io.cpp
+++ b/src/wasm/wasm-io.cpp
@@ -33,7 +33,7 @@
namespace wasm {
-bool useNewWATParser = false;
+bool useNewWATParser = true;
#define DEBUG_TYPE "writer"