Merge branch '3454' of https://github.com/ShyykoSerhiy/TypeScript into ShyykoSerhiy-3454

This commit is contained in:
Mohamed Hegazy
2015-07-15 16:34:19 -07:00
2 changed files with 5 additions and 2 deletions

View File

@@ -4219,6 +4219,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
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).
var startIndex = emitDirectivePrologues(ctor.body.statements, /*startWithNewLine*/ true);
emitDetachedComments(ctor.body.statements);
}
emitCaptureThisForNodeIfNecessary(node);
@@ -4253,7 +4256,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;