Index: src/debug/debug-scopes.cc |
diff --git a/src/debug/debug-scopes.cc b/src/debug/debug-scopes.cc |
index b00b378b5b64836a1a82a981f2686d6b683d3ac0..ef87afbb15fc0dfe9d73d2501aed8b6c6f321d28 100644 |
--- a/src/debug/debug-scopes.cc |
+++ b/src/debug/debug-scopes.cc |
@@ -203,7 +203,7 @@ ScopeIterator::ScopeType ScopeIterator::Type() { |
} |
} |
if (context_->IsNativeContext()) { |
- DCHECK(context_->global_object()->IsGlobalObject()); |
+ DCHECK(context_->global_object()->IsJSGlobalObject()); |
// If we are at the native context and have not yet seen script scope, |
// fake it. |
return seen_script_scope_ ? ScopeTypeGlobal : ScopeTypeScript; |
@@ -404,7 +404,7 @@ void ScopeIterator::RetrieveScopeChain(Scope* scope, |
MaybeHandle<JSObject> ScopeIterator::MaterializeScriptScope() { |
- Handle<GlobalObject> global(CurrentContext()->global_object()); |
+ Handle<JSGlobalObject> global(CurrentContext()->global_object()); |
Handle<ScriptContextTable> script_contexts( |
global->native_context()->script_context_table()); |