Index: src/api-natives.cc |
diff --git a/src/api-natives.cc b/src/api-natives.cc |
index 0f3c3b69ed85fba89f72ae988e171c80c7133f3e..4bd823684897a30572ade14bf6f3beaf343306a4 100644 |
--- a/src/api-natives.cc |
+++ b/src/api-natives.cc |
@@ -199,15 +199,14 @@ MaybeHandle<JSObject> ConfigureInstance(Isolate* isolate, Handle<JSObject> obj, |
Handle<FixedArray> array = |
isolate->factory()->NewFixedArray(max_number_of_properties); |
- info = *data; |
- while (info != nullptr) { |
+ for (Handle<TemplateInfoT> temp(*data); *temp != nullptr; |
+ temp = handle(temp->GetParent(isolate), isolate)) { |
// Accumulate accessors. |
- Object* maybe_properties = info->property_accessors(); |
+ Object* maybe_properties = temp->property_accessors(); |
if (!maybe_properties->IsUndefined(isolate)) { |
valid_descriptors = AccessorInfo::AppendUnique( |
handle(maybe_properties, isolate), array, valid_descriptors); |
} |
- info = info->GetParent(isolate); |
} |
// Install accumulated accessors. |