Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaurabh Daware <saurabhdaware99@gmail.com>2022-08-06 19:15:13 +0300
committerGitHub <noreply@github.com>2022-08-06 19:15:13 +0300
commit433e9bbefeb070fd3aafd12ea50ba33b5e4bc120 (patch)
tree5c6511c7b699fd6161372e89052a83fc48a2c33f /doc/api/cli.md
parent0a2c910ae9b2c86b9be5f8347e503b716e3f5241 (diff)
doc: add performance note to `--enable-source-maps` docs
PR-URL: https://github.com/nodejs/node/pull/43817 Reviewed-By: Ben Coe <bencoe@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Diffstat (limited to 'doc/api/cli.md')
-rw-r--r--doc/api/cli.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/api/cli.md b/doc/api/cli.md
index b94a0a586c5..97864f15a64 100644
--- a/doc/api/cli.md
+++ b/doc/api/cli.md
@@ -336,6 +336,11 @@ effort to report stack traces relative to the original source file.
Overriding `Error.prepareStackTrace` prevents `--enable-source-maps` from
modifying the stack trace.
+Note, enabling source maps can introduce latency to your application
+when `Error.stack` is accessed. If you access `Error.stack` frequently
+in your application, take into account the performance implications
+of `--enable-source-maps`.
+
### `--experimental-global-customevent`
<!-- YAML