Index: test/unittests/wasm/ast-decoder-unittest.cc |
diff --git a/test/unittests/wasm/ast-decoder-unittest.cc b/test/unittests/wasm/ast-decoder-unittest.cc |
index f508094ef361cfc4859ca635ffa9bb12391e9692..05f94109ab7eb4637cacdfc2a706199c4c1681fd 100644 |
--- a/test/unittests/wasm/ast-decoder-unittest.cc |
+++ b/test/unittests/wasm/ast-decoder-unittest.cc |
@@ -65,12 +65,21 @@ static const WasmOpcode kInt32BinopOpcodes[] = { |
Verify(kSuccess, sigs.v_i(), code, code + sizeof(code)); \ |
} while (false) |
+static bool old_eh_flag; |
+ |
class AstDecoderTest : public TestWithZone { |
public: |
typedef std::pair<uint32_t, LocalType> LocalsDecl; |
AstDecoderTest() : module(nullptr), local_decls(zone()) {} |
+ static void SetUpTestCase() { old_eh_flag = FLAG_wasm_eh_prototype; } |
+ |
+ static void TearDownTestCase() { |
+ // Reset the wasm_eh_prototype flag |
+ FLAG_wasm_eh_prototype = old_eh_flag; |
+ } |
+ |
TestSignatures sigs; |
ModuleEnv* module; |
LocalDeclEncoder local_decls; |