Merge pull request #5852 from holtwick/feature/await_for_es5

Enable await in ES5 and ES2015 script mode
This commit is contained in:
Mohamed Hegazy 2015-12-01 17:08:09 -08:00
commit 19d7e629da

View file

@ -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 {