-
Notifications
You must be signed in to change notification settings - Fork 31.3k
lib: make getCallSites sourceMap option truly optional #57388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lpinca
approved these changes
Mar 9, 2025
marco-ippolito
approved these changes
Mar 9, 2025
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #57388 +/- ##
=======================================
Coverage 90.20% 90.21%
=======================================
Files 629 629
Lines 184948 184952 +4
Branches 36204 36215 +11
=======================================
+ Hits 166837 166859 +22
+ Misses 11057 11036 -21
- Partials 7054 7057 +3
🚀 New features to boost your workflow:
|
targos
approved these changes
Mar 9, 2025
This comment was marked as outdated.
This comment was marked as outdated.
anonrig
approved these changes
Mar 10, 2025
This comment was marked as outdated.
This comment was marked as outdated.
jazelly
approved these changes
Mar 10, 2025
deokjinkim
reviewed
Mar 10, 2025
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.
f38af26
to
a314316
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
jasnell
added a commit
that referenced
this pull request
Mar 14, 2025
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: #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>
Landed in c0788f0 |
aduh95
pushed a commit
that referenced
this pull request
Mar 18, 2025
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: #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>
RafaelGSS
pushed a commit
that referenced
this pull request
Apr 1, 2025
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: #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>
RafaelGSS
pushed a commit
that referenced
this pull request
Apr 1, 2025
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: #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>
RafaelGSS
pushed a commit
to RafaelGSS/node
that referenced
this pull request
Apr 8, 2025
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: nodejs#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>
RafaelGSS
pushed a commit
that referenced
this pull request
Apr 14, 2025
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: #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>
RafaelGSS
pushed a commit
that referenced
this pull request
Apr 14, 2025
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: #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>
aduh95
pushed a commit
that referenced
this pull request
Apr 14, 2025
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: #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>
aduh95
pushed a commit
that referenced
this pull request
Apr 14, 2025
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: #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>
aduh95
pushed a commit
that referenced
this pull request
Apr 15, 2025
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: #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>
RafaelGSS
pushed a commit
that referenced
this pull request
Apr 16, 2025
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: #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>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When calling the
util.getCallSites(...)
API, if theoptions
argument is omitted, then theoptions.sourceMap
option is defaulted to false. However, if any emptyoptions
is passed, it would throw an error ifsourceMap
was not explicitly given. This relaxes that so thatsourceMap
can be left unspecified.For instance, before this commit,
getCallSites({})
would throw an error.Also, add more test coverage of this.