Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 703ba4aeb0d4fb0fe41c32511ad37010b9960a82..e89e2c8d3711fa9addb4bd0dca521d1615b407ac 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -660,11 +660,7 @@ MaybeHandle<Object> Object::GetElementWithReceiver(Isolate* isolate, |
Handle<Object> object, |
Handle<Object> receiver, |
uint32_t index) { |
- if (object->IsUndefined()) { |
- // TODO(verwaest): Why is this check here? |
- UNREACHABLE(); |
- return isolate->factory()->undefined_value(); |
- } |
+ DCHECK(!object->IsUndefined()); |
// Iterate up the prototype chain until an element is found or the null |
// prototype is encountered. |