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 df13d48111c7e35e43abf3ff47102e0a6c2180e8..fe1011574966a1eff77edb779ded31ee1808a0fc 100644 |
--- a/test/unittests/wasm/ast-decoder-unittest.cc |
+++ b/test/unittests/wasm/ast-decoder-unittest.cc |
@@ -68,7 +68,8 @@ class AstDecoderTest : public TestWithZone { |
public: |
typedef std::pair<uint32_t, LocalType> LocalsDecl; |
- AstDecoderTest() : module(nullptr) {} |
+ AstDecoderTest() : module(nullptr), local_decls(zone()) {} |
+ |
TestSignatures sigs; |
ModuleEnv* module; |
LocalDeclEncoder local_decls; |
@@ -2421,7 +2422,7 @@ TEST_F(LocalDeclDecoderTest, MixedLocals) { |
TEST_F(LocalDeclDecoderTest, UseEncoder) { |
const byte* data = nullptr; |
const byte* end = nullptr; |
- LocalDeclEncoder local_decls; |
+ LocalDeclEncoder local_decls(zone()); |
local_decls.AddLocals(5, kAstF32); |
local_decls.AddLocals(1337, kAstI32); |