summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tools/spectest-interp.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tools/spectest-interp.cc b/src/tools/spectest-interp.cc
index c0be53d6..ce8421a1 100644
--- a/src/tools/spectest-interp.cc
+++ b/src/tools/spectest-interp.cc
@@ -1171,7 +1171,6 @@ wabt::Result CommandRunner::OnAssertUninstantiableCommand(
const AssertUninstantiableCommand* command) {
Errors errors;
DefinedModule* module;
- Environment::MarkPoint mark = env_.Mark();
wabt::Result result = ReadModule(command->filename, &env_, &errors, &module);
FormatErrorsToFile(errors, Location::Type::Binary);
@@ -1190,7 +1189,9 @@ wabt::Result CommandRunner::OnAssertUninstantiableCommand(
result = wabt::Result::Error;
}
- env_.ResetToMarkPoint(mark);
+ // Don't reset env_ here; if the start function fails, the environment is
+ // still modified. For example, a table may have been populated with a
+ // function from this module.
return result;
}