diff --git a/src/wasm/wasm-objects.cc b/src/wasm/wasm-objects.cc index f2634e6b42..4a44dafe05 100644 --- a/src/wasm/wasm-objects.cc +++ b/src/wasm/wasm-objects.cc @@ -1467,6 +1467,10 @@ Handle WasmCompiledModule::Clone( return ret; } + Handle export_copy = isolate->factory()->CopyFixedArray( + handle(module->export_wrappers(), isolate)); + ret->set_export_wrappers(*export_copy); + std::unique_ptr native_module = module->GetNativeModule()->Clone(); // construct the wrapper in 2 steps, because its construction may trigger GC,