IndexedDB: Invalid dates should not be valid keys
Created attachment 127011 [details] Patch
I noticed this special case and filed a bug against the spec: https://www.w3.org/Bugs/Public/show_bug.cgi?id=15987 This edge case could make the IndexedDB implementation misbehave, since NaNs don't order sensibly and could make insertion and iterators sad pandas.
Comment on attachment 127011 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=127011&action=review > Source/WebCore/bindings/v8/IDBBindingUtilities.cpp:49 > - if (value->IsDate()) > + if (value->IsDate() && !isnan(value->NumberValue())) Should this file explicitly include wtf/MthExtras.h for isnan? It looks like this code already uses it.
(In reply to comment #3) > Should this file explicitly include wtf/MthExtras.h for isnan? It looks like this code already uses it. Good call, adding it.
Created attachment 127033 [details] Patch for landing
Comment on attachment 127033 [details] Patch for landing Clearing flags on attachment: 127033 Committed r107738: <http://trac.webkit.org/changeset/107738>
All reviewed patches have been landed. Closing bug.