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>
11 lines
No EOL
389 B
JavaScript
11 lines
No EOL
389 B
JavaScript
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
|
|
//# sourceMappingURL=throw-async.mjs.map
|