| Index: test/cctest/wasm/test-run-wasm-module.cc
|
| diff --git a/test/cctest/wasm/test-run-wasm-module.cc b/test/cctest/wasm/test-run-wasm-module.cc
|
| index 2763588bb27e8e73c7ab1ac447948b1f8d69d130..4586497b97c550935413ebfaf8f7c86ccb6fbdfb 100644
|
| --- a/test/cctest/wasm/test-run-wasm-module.cc
|
| +++ b/test/cctest/wasm/test-run-wasm-module.cc
|
| @@ -5,6 +5,7 @@
|
| #include <stdlib.h>
|
| #include <string.h>
|
|
|
| +#include "src/snapshot/code-serializer.h"
|
| #include "src/wasm/module-decoder.h"
|
| #include "src/wasm/wasm-macro-gen.h"
|
| #include "src/wasm/wasm-module-builder.h"
|
| @@ -228,9 +229,16 @@ TEST(Run_WasmModule_Serialization) {
|
| create_params.array_buffer_allocator =
|
| CcTest::InitIsolateOnce()->array_buffer_allocator();
|
|
|
| - for (int i = 0; i < 2; ++i) {
|
| + for (int i = 0; i < 3; ++i) {
|
| v8::Isolate* v8_isolate = v8::Isolate::New(create_params);
|
| if (i == 1) {
|
| + // Invalidate the header by providing a mismatched version
|
| + SerializedCodeData::InvalidateVersionForTest(
|
| + const_cast<uint8_t*>(serialized_bytes.first),
|
| + serialized_bytes.second);
|
| + }
|
| +
|
| + if (i == 2) {
|
| // Provide no serialized data to force recompilation.
|
| serialized_bytes.first = nullptr;
|
| serialized_bytes.second = 0;
|
|
|