Skip to content

Commit 19d7e62

Browse files
committed
Merge pull request microsoft#5852 from holtwick/feature/await_for_es5
Enable await in ES5 and ES2015 script mode
2 parents e134169 + acd1760 commit 19d7e62

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/compiler/emitter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4530,7 +4530,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
45304530
}
45314531

45324532
const isAsync = isAsyncFunctionLike(node);
4533-
if (isAsync && languageVersion === ScriptTarget.ES6) {
4533+
if (isAsync) {
45344534
emitAsyncFunctionBodyForES6(node);
45354535
}
45364536
else {

0 commit comments

Comments
 (0)