| Index: src/debug.cc
|
| diff --git a/src/debug.cc b/src/debug.cc
|
| index 85fdb14f36e6de4ca1939ff4eeecefa82c451786..b5e81c55cb239042c63d7147b2b3c56ba4ba7f9e 100644
|
| --- a/src/debug.cc
|
| +++ b/src/debug.cc
|
| @@ -608,7 +608,13 @@
|
| source_code, script_name, 0, 0, ScriptOriginOptions(), Handle<Object>(),
|
| context, NULL, NULL, ScriptCompiler::kNoCompileOptions, NATIVES_CODE,
|
| false);
|
| - if (function_info.is_null()) return false;
|
| +
|
| + // Silently ignore stack overflows during compilation.
|
| + if (function_info.is_null()) {
|
| + DCHECK(isolate->has_pending_exception());
|
| + isolate->clear_pending_exception();
|
| + return false;
|
| + }
|
|
|
| // Execute the shared function in the debugger context.
|
| Handle<JSFunction> function =
|
|
|