Commit 6c98bb1e authored by verwaest's avatar verwaest Committed by Commit bot

Remove undefined-check from GetElementWithReceiver

BUG=

Review URL: https://codereview.chromium.org/1145693002

Cr-Commit-Position: refs/heads/master@{#28443}
parent 4268141c
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment