Skip to content

Commit d663396

Browse files
committed
doc: add performance note to doc
1 parent 99b109f commit d663396

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/api/cli.md

+4
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,10 @@ effort to report stack traces relative to the original source file.
280280
Overriding `Error.prepareStackTrace` prevents `--enable-source-maps` from
281281
modifying the stack trace.
282282

283+
Note, Accessing `Error.stack` with source maps enabled can be an expensive
284+
operation. Do check out the performance implications of `--enable-source-maps`
285+
at [nodejs/node#41541](https://github.com/nodejs/node/issues/41541).
286+
283287
### `--experimental-global-webcrypto`
284288

285289
<!-- YAML

0 commit comments

Comments
 (0)