mirror of
https://github.com/servo/servo.git
synced 2025-06-13 02:44:29 +00:00
Auto merge of #14859 - servo:CallSetup, r=nox
Simplify CallSetup. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14859) <!-- Reviewable:end -->
This commit is contained in:
commit
839b7fe8ef
2 changed files with 14 additions and 21 deletions
|
@ -6275,11 +6275,7 @@ class CGCallback(CGClass):
|
|||
args.insert(0, Argument(None, "&self"))
|
||||
argsWithoutThis.insert(0, Argument(None, "&self"))
|
||||
|
||||
setupCall = ("let mut s_ec = RootedObject::new_unrooted(ptr::null_mut());\n"
|
||||
"let s = CallSetup::new(&mut s_ec, self, aExceptionHandling);\n"
|
||||
"if s.get_context().is_null() {\n"
|
||||
" return Err(JSFailed);\n"
|
||||
"}\n")
|
||||
setupCall = "let s = CallSetup::new(self, aExceptionHandling);\n"
|
||||
|
||||
bodyWithThis = string.Template(
|
||||
setupCall +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue