Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index fe58a0953cd72e76a672c64eefd43427715f30f6..35f164841e2ab283a87bd8665f2a12bd144e71ea 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -445,15 +445,12 @@ BUILTIN(ArrayPop) { |
return CallJsBuiltin(isolate, "$arrayPop", args); |
} |
- ElementsAccessor* accessor = array->GetElementsAccessor(); |
uint32_t new_length = len - 1; |
Handle<Object> element; |
ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
isolate, element, Object::GetElement(isolate, array, new_length)); |
- RETURN_FAILURE_ON_EXCEPTION( |
- isolate, |
- accessor->SetLength(array, handle(Smi::FromInt(new_length), isolate))); |
+ JSArray::SetLength(array, new_length); |
return *element; |
} |