No error message when passing an invalid API version to ApplePaySession constructor
Created attachment 282143 [details] Patch
Comment on attachment 282143 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=282143&action=review > Source/WebCore/Modules/applepay/ApplePaySession.cpp:652 > + if (!version || !paymentCoordinator.supportsVersion(version)) { Why does supportsVersion not return false for version=0?
(In reply to comment #2) > Comment on attachment 282143 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=282143&action=review > > > Source/WebCore/Modules/applepay/ApplePaySession.cpp:652 > > + if (!version || !paymentCoordinator.supportsVersion(version)) { > > Why does supportsVersion not return false for version=0? supportsVersion throws an exception if you pass 0 since it's out of range.
Committed r202499: <http://trac.webkit.org/changeset/202499>