opencode/packages/codemode-rust/conformance/cases/async-functions.js
2026-11-18 18:53:56 +01:00

4 lines
151 B
JavaScript

async function inc(x) { return x + 1 }
const p = inc(1)
const arrow = async (x) => (await inc(x)) * 10
return [typeof p.then, await p, await arrow(2)]