Index: src/wasm/wasm-module.cc |
diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc |
index d043f69f86ad8ca3b7818b13aaee3f1d004a2080..947082864371eee007e17837897cdf7fcdf6bc96 100644 |
--- a/src/wasm/wasm-module.cc |
+++ b/src/wasm/wasm-module.cc |
@@ -1430,6 +1430,13 @@ class WasmInstanceBuilder { |
v8::WeakCallbackType::kFinalizer); |
} |
} |
+ |
+ //-------------------------------------------------------------------------- |
+ // Set all breakpoints that were set on the shared module. |
+ //-------------------------------------------------------------------------- |
+ WasmSharedModuleData::SetBreakpointsOnNewInstance( |
+ compiled_module_->shared(), instance); |
+ |
//-------------------------------------------------------------------------- |
// Run the start function if one was specified. |
//-------------------------------------------------------------------------- |