| Index: src/wasm/wasm-module.cc | 
| diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc | 
| index dde1571194105b8b1c89960b8b081611e22ee789..a2c8ec6b1d666f72d243a19983957cd7626ac4d7 100644 | 
| --- a/src/wasm/wasm-module.cc | 
| +++ b/src/wasm/wasm-module.cc | 
| @@ -773,7 +773,6 @@ static void ResetCompiledModule(Isolate* isolate, JSObject* owner, | 
| } | 
| } | 
| } | 
| -  compiled_module->reset_weak_owning_instance(); | 
| compiled_module->reset_heap(); | 
| } | 
|  | 
| @@ -831,6 +830,7 @@ static void InstanceFinalizer(const v8::WeakCallbackInfo<void>& data) { | 
| } | 
| } | 
| } | 
| +  compiled_module->reset_weak_owning_instance(); | 
| GlobalHandles::Destroy(reinterpret_cast<Object**>(p)); | 
| } | 
|  | 
|  |