Fixes: https://github.com/nodejs/node/issues/42417 PR-URL: https://github.com/nodejs/node/pull/42522 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
13 lines
No EOL
348 B
TypeScript
13 lines
No EOL
348 B
TypeScript
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
|