Index: src/debug/debug-scopes.cc |
diff --git a/src/debug/debug-scopes.cc b/src/debug/debug-scopes.cc |
index ef87afbb15fc0dfe9d73d2501aed8b6c6f321d28..99d96404d17e5405f971048d86cf69eb9d23b10e 100644 |
--- a/src/debug/debug-scopes.cc |
+++ b/src/debug/debug-scopes.cc |
@@ -117,7 +117,7 @@ ScopeIterator::ScopeIterator(Isolate* isolate, Handle<JSFunction> function) |
context_(function->context()), |
seen_script_scope_(false), |
failed_(false) { |
- if (!function->IsSubjectToDebugging()) context_ = Handle<Context>(); |
+ if (!function->shared()->IsSubjectToDebugging()) context_ = Handle<Context>(); |
} |