Index: src/debug/debug-scopes.cc |
diff --git a/src/debug/debug-scopes.cc b/src/debug/debug-scopes.cc |
index b93af34d4101748dee7d3b4626ba80448ab371e3..60c710d8a3f998127beccaca26b53decceaf3d8f 100644 |
--- a/src/debug/debug-scopes.cc |
+++ b/src/debug/debug-scopes.cc |
@@ -756,7 +756,7 @@ void ScopeIterator::CopyContextLocalsToScopeObject( |
int context_index = Context::MIN_CONTEXT_SLOTS + i; |
Handle<Object> value = Handle<Object>(context->get(context_index), isolate); |
// Reflect variables under TDZ as undefined in scope object. |
- if (value->IsTheHole()) continue; |
+ if (value->IsTheHole(isolate)) continue; |
// This should always succeed. |
// TODO(verwaest): Use AddDataProperty instead. |
JSObject::SetOwnPropertyIgnoreAttributes(scope_object, name, value, NONE) |