@@ -296,21 +296,21 @@ namespace ts {
296296 * If loop contains block scoped binding captured in some function then loop body is converted to a function.
297297 * Lexical bindings declared in loop initializer will be passed into the loop body function as parameters,
298298 * however if this binding is modified inside the body - this new value should be propagated back to the original binding.
299- * This is done by declaring new variable (out parameter holder) outside of the loop for every binding that is reassigned inside the body.
299+ * This is done by declaring new variable (out parameter holder) outside of the loop for every binding that is reassigned inside the body.
300300 * On every iteration this variable is initialized with value of corresponding binding.
301301 * At every point where control flow leaves the loop either explicitly (break/continue) or implicitly (at the end of loop body)
302302 * we copy the value inside the loop to the out parameter holder.
303- *
303+ *
304304 * for (let x;;) {
305305 * let a = 1;
306306 * let b = () => a;
307307 * x++
308308 * if (...) break;
309309 * ...
310310 * }
311- *
311+ *
312312 * will be converted to
313- *
313+ *
314314 * var out_x;
315315 * var loop = function(x) {
316316 * var a = 1;
@@ -326,7 +326,7 @@ namespace ts {
326326 * x = out_x;
327327 * if (state === "break") break;
328328 * }
329- *
329+ *
330330 * NOTE: values to out parameters are not copies if loop is abrupted with 'return' - in this case this will end the entire enclosing function
331331 * so nobody can observe this new value.
332332 */
@@ -3049,7 +3049,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
30493049 }
30503050
30513051 writeLine ( ) ;
3052- // end of loop body -> copy out parameter
3052+ // end of loop body -> copy out parameter
30533053 copyLoopOutParameters ( convertedLoopState , CopyDirection . ToOutParameter , /*emitAsStatements*/ true ) ;
30543054
30553055 decreaseIndent ( ) ;
@@ -4685,7 +4685,7 @@ const _super = (function (geti, seti) {
46854685 write ( ", void 0, " ) ;
46864686 }
46874687
4688- if ( languageVersion >= ScriptTarget . ES6 || ! promiseConstructor ) {
4688+ if ( ! promiseConstructor || ( compilerOptions . noCustomAsyncPromise && languageVersion >= ScriptTarget . ES6 ) ) {
46894689 write ( "void 0" ) ;
46904690 }
46914691 else {
@@ -7245,7 +7245,7 @@ const _super = (function (geti, seti) {
72457245 }
72467246
72477247 // text should be quoted string
7248- // for deduplication purposes in key remove leading and trailing quotes so 'a' and "a" will be considered the same
7248+ // for deduplication purposes in key remove leading and trailing quotes so 'a' and "a" will be considered the same
72497249 const key = text . substr ( 1 , text . length - 2 ) ;
72507250
72517251 if ( hasProperty ( groupIndices , key ) ) {
0 commit comments