Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Unified Diff: src/date.cc

Issue 1566973002: [date] Date parser says true even for wrong dates, check twice. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/builtins.cc ('k') | test/mjsunit/regress/regress-crbug-575082.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/date.cc
diff --git a/src/date.cc b/src/date.cc
index 8cbf5a602ae1ea888939e6ade8b6228cdb855e37..f98ad64f1f871cb7155600b3a25d286aed1ccaf2 100644
--- a/src/date.cc
+++ b/src/date.cc
@@ -71,7 +71,7 @@ void DateCache::YearMonthDayFromDays(
*year = 400 * (days / kDaysIn400Years) - kYearsOffset;
days %= kDaysIn400Years;
- DCHECK(DaysFromYearMonth(*year, 0) + days == save_days);
+ DCHECK_EQ(save_days, DaysFromYearMonth(*year, 0) + days);
days--;
int yd1 = days / kDaysIn100Years;
« no previous file with comments | « src/builtins.cc ('k') | test/mjsunit/regress/regress-crbug-575082.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698