Merge pull request #13604 from calixteman/xfa_proto_propr

XFA - A prototype can have a property which needs itself to resolve a proto
This commit is contained in:
calixteman 2021-06-22 09:58:29 +02:00 committed by GitHub
commit b886b6c995
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -493,14 +493,16 @@ class XFAObject {
}
ancestors.add(proto);
// The prototype can have a "use" attribute itself.
const protoProto = proto[_getPrototype](ids, ancestors);
if (!protoProto) {
ancestors.delete(proto);
return proto;
if (protoProto) {
proto[_applyPrototype](protoProto, ids, ancestors);
}
proto[_applyPrototype](protoProto, ids, ancestors);
// The prototype can have a child which itself has a "use" property.
proto[$resolvePrototypes](ids, ancestors);
ancestors.delete(proto);
return proto;