| Index: test/unittests/wasm/function-body-decoder-unittest.cc
|
| diff --git a/test/unittests/wasm/function-body-decoder-unittest.cc b/test/unittests/wasm/function-body-decoder-unittest.cc
|
| index 3653d074d65a840b0b837bb4e724d135360e5785..ffac2637f1eb3b15a96c7ebdc1e91c2b254a96af 100644
|
| --- a/test/unittests/wasm/function-body-decoder-unittest.cc
|
| +++ b/test/unittests/wasm/function-body-decoder-unittest.cc
|
| @@ -110,8 +110,9 @@ class FunctionBodyDecoderTest : public TestWithZone {
|
| const byte* end) {
|
| local_decls.Prepend(zone(), &start, &end);
|
| // Verify the code.
|
| - DecodeResult result =
|
| - VerifyWasmCode(zone()->allocator(), module, sig, start, end);
|
| + DecodeResult result = VerifyWasmCode(
|
| + zone()->allocator(), module == nullptr ? nullptr : module->module, sig,
|
| + start, end);
|
|
|
| if (result.error_code != expected) {
|
| ptrdiff_t pc = result.error_pc - result.start;
|
|
|