Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
doc: add performance note to --enable-source-maps doc
  • Loading branch information
saurabhdaware committed Jul 18, 2022
commit 8aa6fc43328be8581363bed6daca0ca8a62122b5
4 changes: 4 additions & 0 deletions doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,10 @@ effort to report stack traces relative to the original source file.
Overriding `Error.prepareStackTrace` prevents `--enable-source-maps` from
modifying the stack trace.

Note, Accessing `Error.stack` with source maps enabled can be an expensive
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the text to be less of a warning and more of a note on performance implication when accessing Error.stack. Let me know if this looks better than before.

operation. Do check out the performance implications of `--enable-source-maps`
at [nodejs/node#41541](https://github.com/nodejs/node/issues/41541).

### `--experimental-global-webcrypto`

<!-- YAML
Expand Down