Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 563333f0b3556d9e728ce445b02875f2ebd53d3c..f95c12983e84ac452f2c0393e4ef7bd757e3bc88 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -1073,7 +1073,7 @@ static MaybeObject* GetOwnProperty(Isolate* isolate, |
// This could be an element. |
uint32_t index; |
if (name->AsArrayIndex(&index)) { |
- switch (obj->HasLocalElement(index)) { |
+ switch (obj->GetLocalElementType(index)) { |
case JSObject::UNDEFINED_ELEMENT: |
return heap->undefined_value(); |
@@ -4681,7 +4681,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_IsPropertyEnumerable) { |
uint32_t index; |
if (key->AsArrayIndex(&index)) { |
- JSObject::LocalElementType type = object->HasLocalElement(index); |
+ JSObject::LocalElementType type = object->GetLocalElementType(index); |
switch (type) { |
case JSObject::UNDEFINED_ELEMENT: |
case JSObject::STRING_CHARACTER_ELEMENT: |