Index: src/debug/debug-scopes.cc |
diff --git a/src/debug/debug-scopes.cc b/src/debug/debug-scopes.cc |
index 948183814e10db23fe283eac489c53b68612f914..62b78b472833e8fe996a00b771a4378f07716363 100644 |
--- a/src/debug/debug-scopes.cc |
+++ b/src/debug/debug-scopes.cc |
@@ -228,7 +228,7 @@ MaybeHandle<JSObject> ScopeIterator::ScopeObject() { |
DCHECK(!failed_); |
switch (Type()) { |
case ScopeIterator::ScopeTypeGlobal: |
- return Handle<JSObject>(CurrentContext()->global_object()); |
+ return Handle<JSObject>(CurrentContext()->global_proxy()); |
case ScopeIterator::ScopeTypeScript: |
return MaterializeScriptScope(); |
case ScopeIterator::ScopeTypeLocal: |