Ignore:
Timestamp:
Aug 10, 2009, 11:30:24 AM (16 years ago)
Author:
[email protected]
Message:

Fix an annoying indentation issue.

Reviewed by Anders Carlsson.

  • runtime/DateConstructor.cpp:

(JSC::constructDate):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/DateConstructor.cpp

    r44866 r46992  
    3737
    3838#if PLATFORM(WINCE) && !PLATFORM(QT)
    39 extern "C" time_t time(time_t* timer); //provided by libce
     39extern "C" time_t time(time_t* timer); // Provided by libce.
    4040#endif
    4141
     
    5151
    5252namespace JSC {
    53 
    54 // TODO: MakeTime (15.9.11.1) etc. ?
    5553
    5654ASSERT_CLASS_FITS_IN_CELL(DateConstructor);
     
    10199            value = NaN;
    102100        else {
    103           GregorianDateTime t;
    104           int year = args.at(0).toInt32(exec);
    105           t.year = (year >= 0 && year <= 99) ? year : year - 1900;
    106           t.month = args.at(1).toInt32(exec);
    107           t.monthDay = (numArgs >= 3) ? args.at(2).toInt32(exec) : 1;
    108           t.hour = args.at(3).toInt32(exec);
    109           t.minute = args.at(4).toInt32(exec);
    110           t.second = args.at(5).toInt32(exec);
    111           t.isDST = -1;
    112           double ms = (numArgs >= 7) ? args.at(6).toNumber(exec) : 0;
    113           value = gregorianDateTimeToMS(t, ms, false);
     101            GregorianDateTime t;
     102            int year = args.at(0).toInt32(exec);
     103            t.year = (year >= 0 && year <= 99) ? year : year - 1900;
     104            t.month = args.at(1).toInt32(exec);
     105            t.monthDay = (numArgs >= 3) ? args.at(2).toInt32(exec) : 1;
     106            t.hour = args.at(3).toInt32(exec);
     107            t.minute = args.at(4).toInt32(exec);
     108            t.second = args.at(5).toInt32(exec);
     109            t.isDST = -1;
     110            double ms = (numArgs >= 7) ? args.at(6).toNumber(exec) : 0;
     111            value = gregorianDateTimeToMS(t, ms, false);
    114112        }
    115113    }
Note: See TracChangeset for help on using the changeset viewer.