Index: src/wasm/wasm-module.cc |
diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc |
index 404fea5431889192d1312b2ecba62eec498e5cf7..d3470d80f7885265f42cd925ce96c1bf522506ff 100644 |
--- a/src/wasm/wasm-module.cc |
+++ b/src/wasm/wasm-module.cc |
@@ -1220,7 +1220,7 @@ MaybeHandle<JSObject> WasmModule::Instantiate(Isolate* isolate, |
// There is already an owner, clone everything. |
owner = Handle<JSObject>(JSObject::cast(tmp->value()), isolate); |
// Insert the latest clone in front. |
- compiled_module = original->Clone(isolate); |
+ compiled_module = WasmCompiledModule::Clone(isolate, original); |
// Replace the strong reference to point to the new instance here. |
// This allows any of the other instances, including the original, |
// to be collected. |