mirror of
https://github.com/servo/servo
synced 2026-04-27 18:07:52 +02:00
Ensure Promise "reflector" is not GCed before the Rust object.
This commit is contained in:
@@ -233,7 +233,8 @@ class Descriptor(DescriptorProvider):
|
||||
# them as having a concrete descendant.
|
||||
self.concrete = (not self.interface.isCallback() and
|
||||
not self.interface.isNamespace() and
|
||||
not self.interface.getExtendedAttribute("Abstract"))
|
||||
not self.interface.getExtendedAttribute("Abstract") and
|
||||
not spiderMonkeyInterface)
|
||||
self.hasUnforgeableMembers = (self.concrete and
|
||||
any(MemberIsUnforgeable(m, self) for m in
|
||||
self.interface.members))
|
||||
|
||||
Reference in New Issue
Block a user