@@ -314,8 +314,10 @@ var LuaTranspiler = /** @class */ (function () {
314314 return this . transpileFunctionExpression ( node ) ;
315315 case ts . SyntaxKind . NewExpression :
316316 return this . transpileNewExpression ( node ) ;
317+ case ts . SyntaxKind . ComputedPropertyName :
318+ return "[" + this . transpileExpression ( node . expression ) + "]" ;
317319 case ts . SyntaxKind . SuperKeyword :
318- return "self.__base.constructor " ;
320+ return "self.__base" ;
319321 case ts . SyntaxKind . TypeAssertionExpression :
320322 // Simply ignore the type assertion
321323 return this . transpileExpression ( node . expression ) ;
@@ -429,7 +431,7 @@ var LuaTranspiler = /** @class */ (function () {
429431 if ( node . expression . kind == ts . SyntaxKind . SuperKeyword ) {
430432 var callPath_2 = this . transpileExpression ( node . expression ) ;
431433 var params_2 = this . transpileArguments ( node . arguments , ts . createNode ( ts . SyntaxKind . ThisKeyword ) ) ;
432- return callPath_2 + " (" + params_2 + ")" ;
434+ return "$self.__base.constructor (" + params_2 + ")" ;
433435 }
434436 var callPath = this . transpileExpression ( node . expression ) ;
435437 var params = this . transpileArguments ( node . arguments ) ;
@@ -664,7 +666,7 @@ var LuaTranspiler = /** @class */ (function () {
664666 }
665667 else {
666668 var index = _this . transpileExpression ( key ) ;
667- properties . push ( "[" + index + "] =" + _this . transpileExpression ( value ) ) ;
669+ properties . push ( index + "=" + _this . transpileExpression ( value ) ) ;
668670 }
669671 } ) ;
670672 return "{" + properties . join ( "," ) + "}" ;
0 commit comments