Files
ce98adbc09 Fix reparseTopLevelAwait diagnostic slicing bug (#3937)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: jakebailey <[email protected]>
2026-05-18 05:05:08 +00:00

16 lines
310 B
TypeScript

//// [tests/cases/compiler/awaitObjectLiteral.ts] ////
//// [fileA.ts]
export {}
const foo = await { bar: 42 }
//// [fileB.ts]
export const baz = await { x: 1, y: "hello" }
//// [fileA.js]
const foo = await { bar: 42 };
export {};
//// [fileB.js]
export const baz = await { x: 1, y: "hello" };