mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
437 B
TypeScript
19 lines
437 B
TypeScript
//// [tests/cases/conformance/async/es6/asyncUseStrict_es6.ts] ////
|
|
|
|
//// [asyncUseStrict_es6.ts]
|
|
declare var a: boolean;
|
|
declare var p: Promise<boolean>;
|
|
async function func(): Promise<void> {
|
|
"use strict";
|
|
var b = await p || a;
|
|
}
|
|
|
|
//// [asyncUseStrict_es6.js]
|
|
"use strict";
|
|
function func() {
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
"use strict";
|
|
var b = (yield p) || a;
|
|
});
|
|
}
|