Files
node/lib
James M Snell c51710eb0f lib: make getCallSites sourceMap option truly optional
When calling the `util.getCallSites(...)` API, if the `options`
argument is omitted, then the `options.sourceMap` option is defaulted
to false. However, if any empty `options` is passed, it would throw
an error is `sourceMap` was not explicitly given. This relaxes that
so that `sourceMap` can be left unspecified.

For instance, before this commit, `getCallSites({})` would throw an
error.

Also, add more test coverage of this.

PR-URL: https://github.com/nodejs/node/pull/57388
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Jason Zhang <xzha4350@gmail.com>
2025-05-02 17:05:16 -03:00
..
…
…
…
2024-09-24 19:48:15 +00:00
2024-10-09 06:42:16 +00:00
2025-05-02 17:04:50 -03:00
2024-12-15 14:19:27 +00:00
2024-01-12 16:09:48 +00:00
2024-07-08 15:55:43 +00:00
2024-10-09 06:42:16 +00:00
2024-10-09 06:42:16 +00:00
2024-02-02 15:25:34 +01:00
2025-01-04 18:30:04 +00:00
2025-02-01 02:13:57 +00:00
2025-05-02 17:04:49 -03:00