-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
fix(integrations): Add default for ExtraErrorData's depth option
#4487
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
Conversation
Ensure that depth option is by default set to 3. That wouldn't happen if the user provided empty object as options. Fixes #4186
| */ | ||
| public name: string = ExtraErrorData.id; | ||
|
|
||
| /** JSDoc */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure what purpose does this have but I saw it the debug.ts's code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It’s to get around writing doc strings. We can leave it like this.
AbhiPrasad
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the patch!
| */ | ||
| public name: string = ExtraErrorData.id; | ||
|
|
||
| /** JSDoc */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It’s to get around writing doc strings. We can leave it like this.
lobsterkatie
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for the contribution!
ExtraErrorData's depth option
Ensure that
ExtraErrorData'sdepthoption is by default set to 3. Currently, if the user provides an empty options object,depthgets set toundefined.Fixes #4186