mirror of
https://github.com/servo/servo.git
synced 2025-06-13 10:54:29 +00: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:
parent
070008b4c4
commit
bdb75c2146
2 changed files with 3 additions and 3 deletions
|
@ -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)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue