Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index b2159fade0ed4683b7f543b09757755b1cb37fda..a3c02b2cb8c18b53b742022dde1cc007981372f1 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -8308,11 +8308,13 @@ MaybeHandle<FixedArray> GetOwnValuesOrEntries(Isolate* isolate, |
PropertyFilter key_filter = |
static_cast<PropertyFilter>(filter & ~ONLY_ENUMERABLE); |
- KeyAccumulator accumulator(isolate, KeyCollectionMode::kOwnOnly, key_filter); |
- MAYBE_RETURN(accumulator.CollectKeys(object, object), |
- MaybeHandle<FixedArray>()); |
- Handle<FixedArray> keys = |
- accumulator.GetKeys(GetKeysConversion::kConvertToString); |
+ |
+ Handle<FixedArray> keys; |
+ ASSIGN_RETURN_ON_EXCEPTION_VALUE( |
+ isolate, keys, |
+ KeyAccumulator::GetKeys(object, KeyCollectionMode::kOwnOnly, key_filter, |
+ GetKeysConversion::kConvertToString), |
+ MaybeHandle<FixedArray>()); |
values_or_entries = isolate->factory()->NewFixedArray(keys->length()); |
int length = 0; |