aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/Configuration.py
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2016-08-25 18:06:37 -0400
committerJosh Matthews <josh@joshmatthews.net>2016-09-22 16:16:54 -0400
commitef501603bf8997e29f8d2d538b7755838236d6c8 (patch)
tree4b100271f7b4c1d80cf0fbc4576e970259f2f1b4 /components/script/dom/bindings/codegen/Configuration.py
parentf89355b85d9cb8be5b576d6002bdf5227bd3c86a (diff)
downloadservo-ef501603bf8997e29f8d2d538b7755838236d6c8.tar.gz
servo-ef501603bf8997e29f8d2d538b7755838236d6c8.zip
Ensure Promise "reflector" is not GCed before the Rust object.
Diffstat (limited to 'components/script/dom/bindings/codegen/Configuration.py')
-rw-r--r--components/script/dom/bindings/codegen/Configuration.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/bindings/codegen/Configuration.py b/components/script/dom/bindings/codegen/Configuration.py
index 835bcbe4774..9a1120769c8 100644
--- a/components/script/dom/bindings/codegen/Configuration.py
+++ b/components/script/dom/bindings/codegen/Configuration.py
@@ -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))