aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/CodegenRust.py
diff options
context:
space:
mode:
authorMatt McCoy <mattnenterprise@yahoo.com>2014-12-24 17:16:48 -0500
committerMatt McCoy <mattnenterprise@yahoo.com>2014-12-24 17:16:48 -0500
commitbdb75c2146f3519a9526d589d25ae7c2499fcc56 (patch)
treec94028e78f0cf2dd5187b1effe725024a417dc70 /components/script/dom/bindings/codegen/CodegenRust.py
parent070008b4c43337b3ef4ef78b09f73e64b4d0be23 (diff)
downloadservo-bdb75c2146f3519a9526d589d25ae7c2499fcc56.tar.gz
servo-bdb75c2146f3519a9526d589d25ae7c2499fcc56.zip
This fixes #4166. throw_dom_exception will take the GlobalRef by value, and all generated code will pass it 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 01efdd012c0..df7085e64d2 100644
--- a/components/script/dom/bindings/codegen/CodegenRust.py
+++ b/components/script/dom/bindings/codegen/CodegenRust.py
@@ -2215,7 +2215,7 @@ class CGCallGenerator(CGThing):
" Ok(result) => result,\n"
" Err(e) => {\n"
"%s"
- " throw_dom_exception(cx, &global.root_ref(), e);\n"
+ " throw_dom_exception(cx, global.root_ref(), e);\n"
" return%s;\n"
" },\n"
"};\n" % (glob, errorResult)))