Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 9933e9c61497c8d3307ea4643cc96b65bc0eca07..7c2a89f0ee0315081937630f523dc6fe59a4ba43 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -542,9 +542,8 @@ MaybeHandle<Object> Object::GetPropertyWithDefinedGetter( |
Debug* debug = isolate->debug(); |
// Handle stepping into a getter if step into is active. |
// TODO(rossberg): should this apply to getters that are function proxies? |
- if (debug->StepInActive() && getter->IsJSFunction()) { |
- debug->HandleStepIn( |
- Handle<JSFunction>::cast(getter), Handle<Object>::null(), 0, false); |
+ if (debug->is_active()) { |
+ debug->HandleStepIn(getter, Handle<Object>::null(), 0, false); |
} |
return Execution::Call(isolate, getter, receiver, 0, NULL, true); |
@@ -560,9 +559,8 @@ MaybeHandle<Object> Object::SetPropertyWithDefinedSetter( |
Debug* debug = isolate->debug(); |
// Handle stepping into a setter if step into is active. |
// TODO(rossberg): should this apply to getters that are function proxies? |
- if (debug->StepInActive() && setter->IsJSFunction()) { |
- debug->HandleStepIn( |
- Handle<JSFunction>::cast(setter), Handle<Object>::null(), 0, false); |
+ if (debug->is_active()) { |
+ debug->HandleStepIn(setter, Handle<Object>::null(), 0, false); |
} |
Handle<Object> argv[] = { value }; |