Files
test-repo/tests/async/conditional-expression.js
T

14 lines
326 B
JavaScript
Raw Normal View History

async function f() {
const result = typeof fn === 'function' ? await fn() : null;
}
2017-02-19 23:31:54 +01:00
(async function() {
console.log(
await (true ? Promise.resolve("A") : Promise.resolve("B"))
);
})()
async function f() {
await (spellcheck && spellcheck.setChecking(false));
await spellcheck && spellcheck.setChecking(false)
}