mirror of
https://github.com/servo/servo
synced 2026-04-30 11:27:28 +02:00
This fixes #4166. throw_dom_exception will take the GlobalRef by value, and all generated code will pass it by value.
This commit is contained in:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user