Skip to content

Commit 4cd7f07

Browse files
committed
Move startIndex declaration to the top
1 parent f2918fd commit 4cd7f07

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/compiler/emitter.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4215,13 +4215,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
42154215
}
42164216
}
42174217

4218+
let startIndex = 0;
4219+
42184220
write(" {");
42194221
scopeEmitStart(node, "constructor");
42204222
increaseIndent();
42214223
if (ctor) {
42224224
// Emit all the directive prologues (like "use strict"). These have to come before
42234225
// any other preamble code we write (like parameter initializers).
4224-
var startIndex = emitDirectivePrologues(ctor.body.statements, /*startWithNewLine*/ true);
4226+
startIndex = emitDirectivePrologues(ctor.body.statements, /*startWithNewLine*/ true);
42254227
emitDetachedComments(ctor.body.statements);
42264228
}
42274229
emitCaptureThisForNodeIfNecessary(node);

0 commit comments

Comments
 (0)