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

Issue 160580: Add safe handling of NaN to Posix platform-dependent time functions. (Closed)

Created:
11 years, 4 months ago by William Hesse
Modified:
9 years, 7 months ago
Reviewers:
Kasper Lund
CC:
v8-dev
Visibility:
Public.

Description

Add safe handling of NaN to Posix platform-dependent time functions. Committed: http://code.google.com/p/v8/source/detail?r=2615

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -7 lines) Patch
M src/date-delay.js View 2 chunks +5 lines, -5 lines 0 comments Download
M src/platform-posix.cc View 2 chunks +2 lines, -2 lines 0 comments Download
A test/mjsunit/regress/regress-416.js View 1 1 chunk +38 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
William Hesse
This will be tested on most platforms on Flexo, and I will also test on ...
11 years, 4 months ago (2009-08-04 09:23:08 UTC) #1
Kasper Lund
11 years, 4 months ago (2009-08-04 09:28:25 UTC) #2
http://codereview.chromium.org/160580/diff/1/4
File test/mjsunit/regress/regress-416.js (right):

http://codereview.chromium.org/160580/diff/1/4#newcode32
Line 32: assertEquals((new Date(1e81)).valueOf(), Number.NaN, "new Date(1e81)");
This seems backwards to me. The expected value should go before the actual value
and you can't really compare NaN's this way. Shouldn't it be something like:

assertTrue(isNaN(new Date(1e81).getTime()), "new Date(1e81");

Powered by Google App Engine
This is Rietveld 408576698