Index: src/debug.cc |
diff --git a/src/debug.cc b/src/debug.cc |
index 7624f26d7ad9490b58fceef330095b8b15f0ca11..07b4a935259cb813e887b98ea6a3e617e4bdb0ff 100644 |
--- a/src/debug.cc |
+++ b/src/debug.cc |
@@ -1793,10 +1793,14 @@ void Debug::HandleStepIn(Handle<JSFunction> function, |
// function to be called and not the code for Builtins::FunctionApply or |
// Builtins::FunctionCall. The receiver of call/apply is the target |
// function. |
- if (!holder.is_null() && holder->IsJSFunction() && |
- !JSFunction::cast(*holder)->IsBuiltin()) { |
+ if (!holder.is_null() && holder->IsJSFunction()) { |
Handle<JSFunction> js_function = Handle<JSFunction>::cast(holder); |
- Debug::FloodWithOneShot(js_function); |
+ if (!js_function->IsBuiltin()) { |
+ Debug::FloodWithOneShot(js_function); |
+ } else if (js_function->shared()->bound()) { |
+ // Handle Function.prototype.bind |
+ Debug::FloodBoundFunctionWithOneShot(js_function); |
+ } |
} |
} else { |
Debug::FloodWithOneShot(function); |