Ignore:
Timestamp:
Aug 11, 2010, 5:31:12 PM (15 years ago)
Author:
[email protected]
Message:

2010-08-11 Leo Yang <[email protected]>

Reviewed by Geoffrey Garen.

Date("") should be an invalid date. For IE, Firefox and Chrome, Date("") is invalid date,
which means isNaN(new Date("")) should return true.
https://bugs.webkit.org/show_bug.cgi?id=43793
Tests: fast/js/date-constructor.html

  • runtime/JSGlobalData.cpp: (JSC::JSGlobalData::resetDateCache):

2010-08-11 Leo Yang <[email protected]>

Reviewed by Geoffrey Garen.

Add isNaN(new Date("")) test to fast/js/script-tests/date-constructor.js.
https://bugs.webkit.org/show_bug.cgi?id=43793

  • fast/js/date-constructor-expected.txt:
  • fast/js/script-tests/date-constructor.js:
File:
1 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.