Changeset 9924 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Jul 27, 2005, 12:54:18 PM (20 years ago)
Author:
ggaren
Message:

JavaScriptCore:

  • Test cases added:
  • layout-tests/fast/js/date-big-setdate-expected.txt: Added.
  • layout-tests/fast/js/date-big-setdate.html: Added.

Reviewed by darin.

  • kjs/date_object.cpp: (DateProtoFuncImp::call):

WebCore:

Test cases added:

  • layout-tests/fast/js/date-big-setdate-expected.txt: Added.
  • layout-tests/fast/js/date-big-setdate.html: Added.
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r9922 r9924  
     12005-07-27  Geoffrey Garen  <[email protected]>
     2
     3        - fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=3381
     4        Date.prototype.setDate() incorrect for values >=128
     5       
     6        - Test cases added:
     7
     8        * layout-tests/fast/js/date-big-setdate-expected.txt: Added.
     9        * layout-tests/fast/js/date-big-setdate.html: Added.
     10
     11        Reviewed by darin.
     12
     13        * kjs/date_object.cpp:
     14        (DateProtoFuncImp::call):
     15
    1162005-07-27  Geoffrey Garen  <[email protected]>
    217
  • trunk/JavaScriptCore/kjs/date_object.cpp

    r9922 r9924  
    723723    break;
    724724  case SetDate:
    725     t->tm_mday = args[0].toInt32(exec);
    726     break;
     725      t->tm_mday = 0;
     726      ms += args[0].toInt32(exec) * msPerDay;
     727      break;
    727728  case SetMonth:
    728729    t->tm_mon = args[0].toInt32(exec);
Note: See TracChangeset for help on using the changeset viewer.