| Index: src/debug/debug.cc
|
| diff --git a/src/debug/debug.cc b/src/debug/debug.cc
|
| index 92699bcd4bf9f5d21c723d2a443cdbeb3ddbb1c8..d99435c845756c5757a50498a5374662a8b22492 100644
|
| --- a/src/debug/debug.cc
|
| +++ b/src/debug/debug.cc
|
| @@ -923,7 +923,7 @@ void Debug::PrepareStep(StepAction step_action,
|
| }
|
| // Skip native and extension functions on the stack.
|
| while (!frames_it.done() &&
|
| - !frames_it.frame()->function()->IsSubjectToDebugging()) {
|
| + !frames_it.frame()->function()->shared()->IsSubjectToDebugging()) {
|
| frames_it.Advance();
|
| }
|
| // Step out: If there is a JavaScript caller frame, we need to
|
| @@ -2244,7 +2244,7 @@ void Debug::HandleDebugBreak() {
|
| Object* fun = it.frame()->function();
|
| if (fun && fun->IsJSFunction()) {
|
| // Don't stop in builtin functions.
|
| - if (!JSFunction::cast(fun)->IsSubjectToDebugging()) return;
|
| + if (!JSFunction::cast(fun)->shared()->IsSubjectToDebugging()) return;
|
| JSGlobalObject* global =
|
| JSFunction::cast(fun)->context()->global_object();
|
| // Don't stop in debugger functions.
|
|
|