Bugzilla – Bug 15987
[IndexedDB] Invalid dates should not be valid keys
Last modified: 2012-03-02 16:19:40 UTC
Section 3.1.3 Keys:
Just as NaN floats are not valid keys, invalid dates - i.e. dates where the internal double (revealed by date.valueOf()) is NaN - should not be considered valid keys as these cannot be "compared to other Date values chronologically"
I don't know if it's really needed, but for what it's worth this totally makes sense and of course I agree. ;-)