Assign to 'this' immediately in CGAbstractBindingMethod.

This makes the generated code a bit more rustic.
This commit is contained in:
Ms2ger 2014-04-24 23:57:25 +02:00
parent a6a06e0ffc
commit de8f123b1d

View file

@ -2502,8 +2502,7 @@ class CGAbstractBindingMethod(CGAbstractExternMethod):
" return false as JSBool;\n"
"}\n"
"\n"
"let this: JS<%s>;\n"
"this = %s;\n" % (self.descriptor.concreteType, unwrapThis)))
"let this: JS<%s> = %s;\n" % (self.descriptor.concreteType, unwrapThis)))
return CGList([ unwrapThis, self.generate_code() ], "\n").define()
def generate_code(self):