Skip to content

Commit 08cf559

Browse files
committed
Merge pull request #3433 from Microsoft/systemJsTempVars
move temp declarations out of object literal
2 parents 8a0077f + 364cd11 commit 08cf559

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/compiler/emitter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5389,10 +5389,10 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
53895389
emitSetters(exportStarFunction);
53905390
writeLine();
53915391
emitExecute(node, startIndex);
5392-
emitTempDeclarations(/*newLine*/ true)
53935392
decreaseIndent();
53945393
writeLine();
53955394
write("}"); // return
5395+
emitTempDeclarations(/*newLine*/ true)
53965396
}
53975397

53985398
function emitSetters(exportStarFunction: string) {

tests/baselines/reference/systemModule8.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@ System.register([], function(exports_1) {
6565
exports_1("x", x = _b[_i][0]);
6666
}
6767
}
68-
var _a;
6968
}
69+
var _a;
7070
});

0 commit comments

Comments
 (0)