Index: src/elements.cc |
diff --git a/src/elements.cc b/src/elements.cc |
index 89d3a7b93c85aa6a508bda421baca5fdccac7428..8cb48c6ad8a418e3640b82d2d796b191eddc9a7a 100644 |
--- a/src/elements.cc |
+++ b/src/elements.cc |
@@ -528,9 +528,8 @@ class ElementsAccessorBase : public ElementsAccessor { |
JSObject* holder, |
uint32_t key, |
BackingStore* backing_store) { |
- MaybeObject* element = |
- ElementsAccessorSubclass::GetImpl(receiver, holder, key, backing_store); |
- return !element->IsTheHole(); |
+ return ElementsAccessorSubclass::GetAttributesImpl( |
+ receiver, holder, key, backing_store) != ABSENT; |
} |
virtual bool HasElement(Object* receiver, |