mirror of
https://github.com/servo/servo
synced 2026-04-27 09:57:23 +02:00
Introduce Descriptor.prototypeDepth
This commit is contained in:
@@ -296,6 +296,7 @@ class Descriptor(DescriptorProvider):
|
||||
while parent:
|
||||
self.prototypeChain.insert(0, parent.identifier.name)
|
||||
parent = parent.parent
|
||||
self.prototypeDepth = len(self.prototypeChain) - 1
|
||||
config.maxProtoChainLength = max(config.maxProtoChainLength,
|
||||
len(self.prototypeChain))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user