Merge pull request #5852 from holtwick/feature/await_for_es5
Enable await in ES5 and ES2015 script mode
This commit is contained in:
commit
19d7e629da
1 changed files with 1 additions and 1 deletions
|
@ -4530,7 +4530,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
|
|||
}
|
||||
|
||||
const isAsync = isAsyncFunctionLike(node);
|
||||
if (isAsync && languageVersion === ScriptTarget.ES6) {
|
||||
if (isAsync) {
|
||||
emitAsyncFunctionBodyForES6(node);
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue