summaryrefslogtreecommitdiff
path: root/test/fixtures/source-map/throw-async.ts
blob: 080b07afa58184593b261d89771b1952fc5cfa6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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