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

Issue 1240093005: Fix check for a date with a 24th hour (Closed)

Created:
5 years, 5 months ago by hichris123
Modified:
5 years, 5 months ago
Reviewers:
adamk, rossberg
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Fix check for a date with a 24th hour According to the ECMA spec, a 24th hour is allowed if the minutes, seconds, and milliseconds are all zero (i.e. it's midnight). Previously, we parsed the date correctly, however, we failed to account in all checks for the possibility of a 24th hour. This CL changes the check to allow a 24th hour if it's exactly midnight. BUG=chromium:174609 LOG=Y Committed: https://crrev.com/ea056cbf2d338f95fe40381c7adf0133df5ed3c9 Cr-Commit-Position: refs/heads/master@{#29816}

Patch Set 1 #

Patch Set 2 : Change to unbreak tests #

Patch Set 3 : Fix presubmit errors #

Patch Set 4 : Add tests #

Patch Set 5 : Fix testcases #

Total comments: 2

Patch Set 6 : Invert if #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -3 lines) Patch
M src/dateparser.cc View 1 2 3 4 5 1 chunk +6 lines, -1 line 0 comments Download
M test/mjsunit/date-parse.js View 1 2 3 4 1 chunk +10 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
hichris123
adamk@: PTAL. Not sure if you're a good reviewer for this, if not, please let ...
5 years, 5 months ago (2015-07-18 03:22:26 UTC) #2
hichris123
Actually, +rossberg@ since it seems this is more of your expertise.
5 years, 5 months ago (2015-07-21 23:51:20 UTC) #4
rossberg
Looks good, just a nit. https://codereview.chromium.org/1240093005/diff/70001/src/dateparser.cc File src/dateparser.cc (right): https://codereview.chromium.org/1240093005/diff/70001/src/dateparser.cc#newcode84 src/dateparser.cc:84: if (hour == 24 ...
5 years, 5 months ago (2015-07-22 09:48:57 UTC) #5
hichris123
https://codereview.chromium.org/1240093005/diff/70001/src/dateparser.cc File src/dateparser.cc (right): https://codereview.chromium.org/1240093005/diff/70001/src/dateparser.cc#newcode84 src/dateparser.cc:84: if (hour == 24 && minute == 0 && ...
5 years, 5 months ago (2015-07-22 22:44:17 UTC) #6
rossberg
lgtm
5 years, 5 months ago (2015-07-23 09:39:51 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1240093005/90001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1240093005/90001
5 years, 5 months ago (2015-07-23 14:24:34 UTC) #9
commit-bot: I haz the power
Committed patchset #6 (id:90001)
5 years, 5 months ago (2015-07-23 14:37:48 UTC) #10
commit-bot: I haz the power
5 years, 5 months ago (2015-07-23 14:37:55 UTC) #11
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/ea056cbf2d338f95fe40381c7adf0133df5ed3c9
Cr-Commit-Position: refs/heads/master@{#29816}

Powered by Google App Engine
This is Rietveld 408576698