Index: src/runtime/runtime-test.cc |
diff --git a/src/runtime/runtime-test.cc b/src/runtime/runtime-test.cc |
index 8100d2c75982d316e6b8326930c86e553bb16d6f..32819269792bc12eced2964aefebeb23a7a23eda 100644 |
--- a/src/runtime/runtime-test.cc |
+++ b/src/runtime/runtime-test.cc |
@@ -768,8 +768,9 @@ RUNTIME_FUNCTION(Runtime_DeserializeWasmModule) { |
if (!maybe_compiled_module.ToHandle(&compiled_module)) { |
return isolate->heap()->undefined_value(); |
} |
- return *wasm::CreateCompiledModuleObject(isolate, compiled_module, |
- wasm::ModuleOrigin::kWasmOrigin); |
+ return *wasm::CreateCompiledModuleObject( |
+ isolate, Handle<wasm::WasmCompiledModule>::cast(compiled_module), |
+ wasm::kWasmOrigin); |
} |
RUNTIME_FUNCTION(Runtime_ValidateWasmInstancesChain) { |