Changeset 50927 in webkit
- Timestamp:
- Nov 12, 2009 9:08:00 PM (14 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r50916 r50927 1 2009-11-12 Steve VanDeBogart <vandebo@chromium.org> 2 3 Reviewed by Adam Barth. 4 5 Calculate the time offset only if we were able to parse 6 the date string. This saves an IPC in Chromium for 7 invalid date strings. 8 https://bugs.webkit.org/show_bug.cgi?id=31416 9 10 * wtf/DateMath.cpp: 11 (WTF::parseDateFromNullTerminatedCharacters): 12 (JSC::parseDateFromNullTerminatedCharacters): 13 1 14 2009-11-12 Oliver Hunt <oliver@apple.com> 2 15 -
trunk/JavaScriptCore/wtf/DateMath.cpp
r50711 r50927 825 825 int offset; 826 826 double ms = parseDateFromNullTerminatedCharacters(dateString, haveTZ, offset); 827 if (isnan(ms)) 828 return NaN; 829 827 830 // fall back to local timezone 828 831 if (!haveTZ) { … … 968 971 int offset; 969 972 double ms = WTF::parseDateFromNullTerminatedCharacters(dateString, haveTZ, offset); 973 if (isnan(ms)) 974 return NaN; 975 970 976 // fall back to local timezone 971 977 if (!haveTZ) {
Note: See TracChangeset
for help on using the changeset viewer.