mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
errors: remove experimental from --enable-source-maps
PR-URL: https://github.com/nodejs/node/pull/37362 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ian Sutherland <ian@iansutherland.ca> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Beth Griggs <bgriggs@redhat.com>
This commit is contained in:
1 parent
da98c9f99b
commit
9ee3f77e32
1 file changed
+11
-4
+11
-4
@@ -188,14 +188,21 @@ Enable FIPS-compliant crypto at startup. (Requires Node.js to be built with
|
||||
### `--enable-source-maps`
|
||||
<!-- YAML
|
||||
added: v12.12.0
|
||||
changes:
|
||||
- version: REPLACEME
|
||||
pr-url: https://github.com/nodejs/node/pull/37362
|
||||
description: This API is no longer experimental.
|
||||
-->
|
||||
|
||||
> Stability: 1 - Experimental
|
||||
Enable [Source Map v3][Source Map] support for stack traces.
|
||||
|
||||
Enable experimental Source Map v3 support for stack traces.
|
||||
When using a transpiler, such as TypeScript, strack traces thrown by an
|
||||
application reference the transpiled code, not the original source position.
|
||||
`--enable-source-maps` enables caching of Source Maps and makes a best
|
||||
effort to report stack traces relative to the original source file.
|
||||
|
||||
Currently, overriding `Error.prepareStackTrace` is ignored when the
|
||||
`--enable-source-maps` flag is set.
|
||||
Overriding `Error.prepareStackTrace` prevents `--enable-source-maps` from
|
||||
modifiying the stack trace.
|
||||
|
||||
### `--experimental-abortcontroller`
|
||||
<!-- YAML
|
||||
|
||||
Reference in new issue
Block a user