Merge branch 'ShyykoSerhiy-3454'

This commit is contained in:
Mohamed Hegazy 2015-07-15 16:43:35 -07:00
commit cc3e97a605
2 changed files with 7 additions and 2 deletions

View File

@ -4215,10 +4215,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
}
}
let startIndex = 0;
write(" {");
scopeEmitStart(node, "constructor");
increaseIndent();
if (ctor) {
// Emit all the directive prologues (like "use strict"). These have to come before
// any other preamble code we write (like parameter initializers).
startIndex = emitDirectivePrologues(ctor.body.statements, /*startWithNewLine*/ true);
emitDetachedComments(ctor.body.statements);
}
emitCaptureThisForNodeIfNecessary(node);
@ -4253,7 +4258,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
if (superCall) {
statements = statements.slice(1);
}
emitLines(statements);
emitLinesStartingAt(statements, startIndex);
}
emitTempDeclarations(/*newLine*/ true);
writeLine();

View File

@ -74,8 +74,8 @@ var A = (function () {
var B = (function (_super) {
__extends(B, _super);
function B() {
this.s = 9;
"use strict"; // No error
this.s = 9;
_super.call(this);
}
return B;