Files
node/lib
James M Snell 0546612d1d 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-04-17 10:51:42 -03:00
..
…
…
…
…
2024-10-04 10:20:24 +02:00
2024-11-27 11:03:39 -05:00
2024-11-27 11:03:39 -05:00
2025-01-05 13:05:31 -05:00
2024-01-12 16:09:48 +00:00
2024-07-16 12:01:14 +02:00
2024-11-27 11:03:39 -05:00
2024-11-27 11:03:39 -05:00
2024-02-02 15:25:34 +01:00
2025-02-03 20:09:53 +01:00
2024-11-27 11:03:39 -05:00
2025-04-17 10:51:24 -03:00
2025-01-05 13:05:25 -05:00
2025-04-17 10:51:20 -03:00
…