aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/CodegenRust.py
diff options
context:
space:
mode:
authorMatt McCoy <mattnenterprise@yahoo.com>2015-01-07 18:42:06 -0500
committerMatt McCoy <matt.mccoy@threewide.com>2015-01-07 18:52:41 -0500
commit85df7f0d6f4f66ad64130ecb09225bb94377737d (patch)
treea91a97b7fffcabdde988e7664dcd7da093fe7c31 /components/script/dom/bindings/codegen/CodegenRust.py
parentcf616b90a236f88058dbad74b568b4d4379d2829 (diff)
downloadservo-85df7f0d6f4f66ad64130ecb09225bb94377737d.tar.gz
servo-85df7f0d6f4f66ad64130ecb09225bb94377737d.zip
Fixes #4164 Make Constructor and new functions take GlobalRef by value
Diffstat (limited to 'components/script/dom/bindings/codegen/CodegenRust.py')
-rw-r--r--components/script/dom/bindings/codegen/CodegenRust.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py
index 82b79eb1971..22d4d000539 100644
--- a/components/script/dom/bindings/codegen/CodegenRust.py
+++ b/components/script/dom/bindings/codegen/CodegenRust.py
@@ -4014,7 +4014,7 @@ let global = global_object_for_js_object(JS_CALLEE(cx, vp).to_object());
let global = global.root();
""")
nativeName = MakeNativeName(self._ctor.identifier.name)
- callGenerator = CGMethodCall(["&global.r()"], nativeName, True,
+ callGenerator = CGMethodCall(["global.r()"], nativeName, True,
self.descriptor, self._ctor)
return CGList([preamble, callGenerator])