-
Notifications
You must be signed in to change notification settings - Fork 15k
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
fix: Ensure that getLastCrashReport()
is actually the last crash report
#12253
fix: Ensure that getLastCrashReport()
is actually the last crash report
#12253
Conversation
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 💯 when we merge this we can close the other PR
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.
This PR is short and sweet. LGTM. One nit inline.
spec/api-crash-reporter-spec.js
Outdated
assert(lastReport != null) | ||
assert(lastReport === reports[0]) |
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 not clear from this block that the new code is being tested.
Would it be possible to prepend an assert(reports.length > 1)
to show that comparison happened?
electron-linux-x64:
electron-linux-ia32:
|
An error occurred while attempting to backport this PR to "1-8-x", you will need to perform this backport manually |
We have automatically backported this PR to "2-0-x", please check out #12255 |
@felixrieseberg Could you backport this to 1-8-x 😄 The bot did 2-0-x for you 👍 |
@MarshallOfSound IMO Not a blocker though so ¯\(ツ)/¯ on this |
This PR fixes #11749 by ensuring that
getLastCrashReport()
actually returns the last crash report (and not just a certain position in the array).Also: A test that actually calls the method under test 😅