[api] Use handle for ConfigureInstance
BUG=chromium:641267 R=verwaest@chromium.org Review-Url: https://codereview.chromium.org/2283713002 Cr-Commit-Position: refs/heads/master@{#38942}
This commit is contained in:
parent
db56339952
commit
2059fb0ba6
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user