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