auto merge of #2522 : Ms2ger/servo/codegen-cleanup, r=jdm

This commit is contained in:
bors-servo 2014-05-30 16:31:10 -04:00
commit 5f5897f4e4

View file

@ -2172,7 +2172,7 @@ class CGCallGenerator(CGThing):
call = CGWrapper(call, pre="%s::" % descriptorProvider.interface.identifier.name)
else:
call = CGWrapper(call, pre="(*%s)." % object)
call = CGList([call, CGWrapper(args, pre="(", post=");")])
call = CGList([call, CGWrapper(args, pre="(", post=")")])
self.cgRoot.append(CGList([
CGGeneric("let result: "),
@ -2194,7 +2194,7 @@ class CGCallGenerator(CGThing):
" Err(e) => {\n"
"%s"
" throw_dom_exception(cx, &*global, e);\n"
" return%s;"
" return%s;\n"
" },\n"
"};\n" % (glob, errorResult)))