Fix whitespace issues

This commit is contained in:
Dirk Holtwick 2015-12-01 20:30:50 +01:00
parent c12d29bda5
commit acd1760c8c

View file

@ -2978,7 +2978,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
}
else {
// this is top level converted loop so we need to create an alias for 'this' here
// NOTE:
// NOTE:
// if converted loops were all nested in arrow function then we'll always emit '_this' so convertedLoopState.thisName will not be set.
// If it is set this means that all nested loops are not nested in arrow function and it is safe to capture 'this'.
write(`var ${convertedLoopState.thisName} = this;`);
@ -4369,7 +4369,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
function emitAsyncFunctionBodyForES6(node: FunctionLikeDeclaration) {
const promiseConstructor = getEntityNameFromTypeNode(node.type);
const isArrowFunction = node.kind === SyntaxKind.ArrowFunction;
const isArrowFunction = node.kind === SyntaxKind.ArrowFunction;
const hasLexicalArguments = (resolver.getNodeCheckFlags(node) & NodeCheckFlags.CaptureArguments) !== 0;
// An async function is emit as an outer function that calls an inner