mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Fix minor misformatting in codegen.
This commit is contained in:
parent
d7cac61d9c
commit
0e83f5af00
1 changed files with 2 additions and 2 deletions
|
@ -2172,7 +2172,7 @@ class CGCallGenerator(CGThing):
|
||||||
call = CGWrapper(call, pre="%s::" % descriptorProvider.interface.identifier.name)
|
call = CGWrapper(call, pre="%s::" % descriptorProvider.interface.identifier.name)
|
||||||
else:
|
else:
|
||||||
call = CGWrapper(call, pre="(*%s)." % object)
|
call = CGWrapper(call, pre="(*%s)." % object)
|
||||||
call = CGList([call, CGWrapper(args, pre="(", post=");")])
|
call = CGList([call, CGWrapper(args, pre="(", post=")")])
|
||||||
|
|
||||||
self.cgRoot.append(CGList([
|
self.cgRoot.append(CGList([
|
||||||
CGGeneric("let result: "),
|
CGGeneric("let result: "),
|
||||||
|
@ -2194,7 +2194,7 @@ class CGCallGenerator(CGThing):
|
||||||
" Err(e) => {\n"
|
" Err(e) => {\n"
|
||||||
"%s"
|
"%s"
|
||||||
" throw_dom_exception(cx, &*global, e);\n"
|
" throw_dom_exception(cx, &*global, e);\n"
|
||||||
" return%s;"
|
" return%s;\n"
|
||||||
" },\n"
|
" },\n"
|
||||||
"};\n" % (glob, errorResult)))
|
"};\n" % (glob, errorResult)))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue