Index: src/debug/debug-evaluate.cc |
diff --git a/src/debug/debug-evaluate.cc b/src/debug/debug-evaluate.cc |
index 263b41be6851291255286f8c35dcba3fecb32256..d5ebaa560be1d2180a59a275d3c1bbbcaaeed2c0 100644 |
--- a/src/debug/debug-evaluate.cc |
+++ b/src/debug/debug-evaluate.cc |
@@ -249,7 +249,8 @@ void DebugEvaluate::ContextBuilder::MaterializeReceiver( |
// 'this' is allocated in an outer context and is is already being |
// referenced by the current function, so it can be correctly resolved. |
return; |
- } else if (local_function->shared()->scope_info()->HasReceiver()) { |
+ } else if (local_function->shared()->scope_info()->HasReceiver() && |
+ !frame_->receiver()->IsTheHole()) { |
recv = handle(frame_->receiver(), isolate_); |
} |
JSObject::SetOwnPropertyIgnoreAttributes(target, name, recv, NONE).Check(); |