| Index: src/debug.cc
|
| diff --git a/src/debug.cc b/src/debug.cc
|
| index bc45365c1ef006b65884f3d040336ae8517bcc5a..a930b75e43be0ac6e6772568dd407d46d013aa10 100644
|
| --- a/src/debug.cc
|
| +++ b/src/debug.cc
|
| @@ -1461,7 +1461,7 @@ bool Debug::PrepareFunctionForBreakPoints(Handle<SharedFunctionInfo> shared) {
|
| if (function->code()->kind() == Code::OPTIMIZED_FUNCTION) {
|
| Deoptimizer::DeoptimizeFunction(function);
|
| }
|
| - functions.Add(handle(function));
|
| + if (function->shared() == *shared) functions.Add(handle(function));
|
| } else if (include_generators && obj->IsJSGeneratorObject()) {
|
| JSGeneratorObject* generator_obj = JSGeneratorObject::cast(obj);
|
| if (!generator_obj->is_suspended()) continue;
|
|
|