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:
Matt McCoy 2014-12-24 17:16:48 -05:00
parent 070008b4c4
commit bdb75c2146
2 changed files with 3 additions and 3 deletions

View file

@ -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)))