| 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 c30903e6a0ada51b90d7ffa9e7e405b25c9b2976..268e0d5a93f703b420d94944f4efa6914684bd8c 100644
|
| --- a/test/cctest/wasm/test-run-wasm-module.cc
|
| +++ b/test/cctest/wasm/test-run-wasm-module.cc
|
| @@ -272,9 +272,8 @@ class WasmSerializationTest {
|
| v8::Utils::OpenHandle(*deserialized_module));
|
| {
|
| DisallowHeapAllocation assume_no_gc;
|
| - Handle<WasmCompiledModule> compiled_part(
|
| - WasmCompiledModule::cast(module_object->GetEmbedderField(0)),
|
| - current_isolate());
|
| + Handle<WasmCompiledModule> compiled_part(module_object->compiled_module(),
|
| + current_isolate());
|
| CHECK_EQ(memcmp(compiled_part->module_bytes()->GetCharsAddress(),
|
| wire_bytes().first, wire_bytes().second),
|
| 0);
|
| @@ -1109,7 +1108,7 @@ TEST(Run_WasmModule_Buffer_Externalized_GrowMem) {
|
| const bool free_memory = true;
|
| wasm::DetachWebAssemblyMemoryBuffer(isolate, memory, free_memory);
|
| CHECK_EQ(16, result);
|
| - memory = handle(mem_obj->buffer());
|
| + memory = handle(mem_obj->array_buffer());
|
| instance->set_memory_buffer(*memory);
|
| // Externalize should make no difference without the JS API as in this case
|
| // the buffer is not detached.
|
|
|