| Index: src/debug.cc
|
| diff --git a/src/debug.cc b/src/debug.cc
|
| index 8c4f51d95a2824c6c92abb2f505e0a76968e9e4c..39e98bf63ee7aadf5277047c51121d84f138a672 100644
|
| --- a/src/debug.cc
|
| +++ b/src/debug.cc
|
| @@ -1959,7 +1959,9 @@ void Debugger::OnBeforeCompile(Handle<Script> script) {
|
|
|
|
|
| // Handle debugger actions when a new script is compiled.
|
| -void Debugger::OnAfterCompile(Handle<Script> script, Handle<JSFunction> fun) {
|
| +// TODO(peter.rybin): consider removing unused fun argument
|
| +void Debugger::OnAfterCompile(Handle<Script> script, Handle<JSFunction> fun,
|
| + bool send_from_debugger) {
|
| HandleScope scope;
|
|
|
| // Add the newly compiled script to the script cache.
|
| @@ -2006,7 +2008,7 @@ void Debugger::OnAfterCompile(Handle<Script> script, Handle<JSFunction> fun) {
|
| return;
|
| }
|
| // Bail out based on state or if there is no listener for this event
|
| - if (in_debugger) return;
|
| + if (in_debugger && !send_from_debugger) return;
|
| if (!Debugger::EventActive(v8::AfterCompile)) return;
|
|
|
| // Create the compile state object.
|
|
|