Summary: | Don't return an empty value from AbortController.signal.reason and make it harder to return empty values from JSValueInWrappedObject | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Saam Barati <saam> | ||||||||
Component: | JavaScriptCore | Assignee: | Saam Barati <saam> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | cdumez, eric.carlson, esprehn+autocc, ews-watchlist, glenn, jer.noble, kangil.han, mark.lam, philipj, sergio, webkit-bug-importer, ysuzuki | ||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||
Version: | WebKit Nightly Build | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Attachments: |
|
Description
Saam Barati
2022-02-08 11:34:21 PST
Created attachment 451336 [details]
patch
Comment on attachment 451336 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=451336&action=review > Source/WebCore/bindings/js/JSValueInWrappedObject.h:-47 > - operator JSC::JSValue() const; Maybe make this private so that the compiler complains if someone tries to cast? > Source/WebCore/bindings/js/JSValueInWrappedObject.h:83 > + if (m_nonCell) > + return true; > + return !!m_cell; You can express this as: return m_nonCell || m_cell; Comment on attachment 451336 [details]
patch
r=me
Created attachment 451337 [details]
patch for landing
Created attachment 451338 [details]
patch for landing
Committed r289462 (247005@main): <https://commits.webkit.org/247005@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 451338 [details]. |