Files
Kmake/test/fixtures/source-map/throw-async.ts

13 lines
348 B
TypeScript
Raw Permalink Normal View History

2026-05-26 23:36:42 -07:00
const message = 'Message ' + Math.random();
export async function Throw() {
throw new Error(message)
}
await Throw();
// To recreate:
//
// npx tsc --module esnext --target es2017 --outDir test/fixtures/source-map --sourceMap test/fixtures/source-map/throw-async.ts
// + rename js to mjs
// + rename js to mjs in source map comment in mjs file