| Index: src/wasm/wasm-debug.cc | 
| diff --git a/src/wasm/wasm-debug.cc b/src/wasm/wasm-debug.cc | 
| index f1b01593cf437415f2d4143af5e03734149a2851..54e71009353715807c70773381c6a6de309d6830 100644 | 
| --- a/src/wasm/wasm-debug.cc | 
| +++ b/src/wasm/wasm-debug.cc | 
| @@ -162,7 +162,11 @@ Script *WasmDebugInfo::GetFunctionScript(Handle<WasmDebugInfo> debug_info, | 
| line_ends->set_map(isolate->heap()->fixed_cow_array_map()); | 
| script->set_line_ends(*line_ends); | 
|  | 
| -  isolate->debug()->OnAfterCompile(script); | 
| +  // TODO(clemensh): Register with the debugger. Note that we cannot call into | 
| +  // JS at this point since this function is called from within stack trace | 
| +  // collection (which means we cannot call Debug::OnAfterCompile in its | 
| +  // current form). See crbug.com/641065. | 
| +  if (false) isolate->debug()->OnAfterCompile(script); | 
|  | 
| return *script; | 
| } | 
|  |