mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
lib: add api to detect whether source-maps are enabled
Add `process.sourceMapsEnabled` to detect whether source-maps are enabled. Fixes: https://github.com/nodejs/node/issues/46304 PR-URL: https://github.com/nodejs/node/pull/46391 Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
This commit is contained in:
1 parent
b4a2be457c
commit
6bb400f8ec
4 files changed
+30
No files matched your search
@@ -3517,6 +3517,19 @@ throw an error.
|
||||
Using this function is mutually exclusive with using the deprecated
|
||||
[`domain`][] built-in module.
|
||||
|
||||
## `process.sourceMapsEnabled`
|
||||
|
||||
<!-- YAML
|
||||
added: REPLACEME
|
||||
-->
|
||||
|
||||
> Stability: 1 - Experimental
|
||||
|
||||
* {boolean}
|
||||
|
||||
The `process.sourceMapsEnabled` property returns whether the
|
||||
[Source Map v3][Source Map] support for stack traces is enabled.
|
||||
|
||||
## `process.stderr`
|
||||
|
||||
* {Stream}
|
||||
|
||||
Reference in new issue
Block a user