RESOLVED WONTFIX 200137
Replace FileSystem::MappedFileData success parameter with returning Optional
https://bugs.webkit.org/show_bug.cgi?id=200137
Summary Replace FileSystem::MappedFileData success parameter with returning Optional
Christopher Reid
Reported 2019-07-25 14:46:12 PDT
This was suggested as followup in https://bugs.webkit.org/show_bug.cgi?id=199759#c12.
Attachments
Patch (13.50 KB, patch)
2019-07-25 14:59 PDT, Christopher Reid
no flags
patch (13.46 KB, patch)
2019-07-25 15:06 PDT, Christopher Reid
no flags
patch (13.46 KB, patch)
2019-07-25 15:12 PDT, Christopher Reid
no flags
Patch (13.73 KB, patch)
2019-07-25 15:46 PDT, Christopher Reid
no flags
Christopher Reid
Comment 1 2019-07-25 14:59:12 PDT
EWS Watchlist
Comment 2 2019-07-25 15:01:08 PDT
Attachment 374905 [details] did not pass style-queue: ERROR: Source/WebCore/ChangeLog:8: You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible. [changelog/nonewtests] [5] Total errors found: 1 in 12 files If any of these errors are false positives, please file a bug against check-webkit-style.
Christopher Reid
Comment 3 2019-07-25 15:06:40 PDT
Christopher Reid
Comment 4 2019-07-25 15:12:09 PDT
Created attachment 374909 [details] patch fixing mac/ios EWS failures
Christopher Reid
Comment 5 2019-07-25 15:46:34 PDT
Created attachment 374916 [details] Patch Fixing mac linker error.
Darin Adler
Comment 6 2019-07-25 16:24:58 PDT
Comment on attachment 374916 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=374916&action=review > Source/JavaScriptCore/runtime/CachedTypes.cpp:195 > + error = BytecodeCacheError::StandardError(errno); Not new to this patch, but I worry about the use of "errno" in platform-independent code. Seems like instead of Optional we could use Expected so the error code would be part of the return value rather than in a global variable.
Note You need to log in before you can comment on or make changes to this bug.