Closed
Bug 868278
Opened 12 years ago
Closed 10 years ago
ProtocolCompatibility should only use promise rejections to indicate exceptions, not false results
Categories
(DevTools :: Debugger, defect, P2)
DevTools
Debugger
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: jimb, Assigned: jimb)
References
Details
Attachments
(1 file)
If we're going to log unhandled promise rejections, and treat them as test failures, then the debugger client's ProtocolCompatibility should not use rejection to announce that a feature isn't present. Instead, it should pass 'true' or 'false' to its resolution handler.
Attachment #744962 -
Flags: review?(nfitzgerald)
Comment 1•12 years ago
|
||
Comment on attachment 744962 [details] [diff] [review]
In the debugger client's ProtocolCompatibility, save promise rejection for exceptions, not false results.
Review of attachment 744962 [details] [diff] [review]:
-----------------------------------------------------------------
Looks great!
Would like to see a green try push just as a formality.
The previous behavior wasn't causing problems was it? If so, sorry!
Final note, I'm not a module peer so you need to get one more person to sign off on this before it can land ;)
::: toolkit/devtools/debugger/dbg-client.jsm
@@ +1182,5 @@
> + return {
> + sources: [
> + { url: url, actor: sourceActorsByURL[url] }
> + for (url of Object.keys(sourceActorsByURL))
> + ]
Nit: indentation looks a little off here with the closing square bracket.
Attachment #744962 -
Flags: review?(nfitzgerald) → review+
Updated•12 years ago
|
Priority: -- → P2
Comment 2•11 years ago
|
||
Are we still doing this?
Updated•10 years ago
|
Summary: JS debugger: ProtocolCompatibility should save promise rejection for exceptions, not false results → ProtocolCompatibility should only use promise rejections to indicate exceptions, not false results
Updated•10 years ago
|
Blocks: dbg-client
Comment 3•10 years ago
|
||
Nick, didn't you get rid of this code completely?
Flags: needinfo?(nfitzgerald)
Comment 4•10 years ago
|
||
Yup, gone in bug 1090594.
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(nfitzgerald)
Resolution: --- → INVALID
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•