Decorate stack frame with 'async' and 'new' keywords based on the type of the call site info. PR-URL: https://github.com/nodejs/node/pull/53860 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
12 lines
No EOL
411 B
JavaScript
12 lines
No EOL
411 B
JavaScript
// Flags: --enable-source-maps
|
|
import '../../../common/index.mjs';
|
|
class Foo {
|
|
constructor() {
|
|
throw new Error('message');
|
|
}
|
|
}
|
|
new Foo();
|
|
// To recreate:
|
|
//
|
|
// npx --package typescript tsc --module nodenext --target esnext --outDir test/fixtures/source-map/output --sourceMap test/fixtures/source-map/output/source_map_throw_construct.mts
|
|
//# sourceMappingURL=source_map_throw_construct.mjs.map
|