Files
test-repo/tests/async/conditional-expression.js
T
Davy Duperron f106b1ec97 Fix await ternary parenthesis (#740)
* Add missing case.

* Update tests.
2017-02-19 14:31:54 -08:00

10 lines
195 B
JavaScript

async function f() {
const result = typeof fn === 'function' ? await fn() : null;
}
(async function() {
console.log(
await (true ? Promise.resolve("A") : Promise.resolve("B"))
);
})()