Changeset 15846 in webkit for trunk/JavaScriptCore/kjs/date_object.cpp
- Timestamp:
- Aug 13, 2006, 8:06:14 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/date_object.cpp
r15757 r15846 363 363 364 364 DateInstance::DateInstance(JSObject *proto) 365 : JS Object(proto)365 : JSWrapperObject(proto) 366 366 { 367 367 } … … 535 535 return throwError(exec, TypeError); 536 536 537 DateInstance* thisDateObj = static_cast<DateInstance*>(thisObj); 538 537 539 JSValue *result = 0; 538 540 UString s; … … 545 547 // FIXME: Where's the code to set the locale back to oldlocale? 546 548 #endif 547 JSValue *v = this Obj->internalValue();549 JSValue *v = thisDateObj->internalValue(); 548 550 double milli = v->toNumber(exec); 549 551 if (isNaN(milli)) { … … 646 648 milli = roundValue(exec, args[0]); 647 649 result = jsNumber(milli); 648 this Obj->setInternalValue(result);650 thisDateObj->setInternalValue(result); 649 651 break; 650 652 case SetMilliSeconds: … … 678 680 id == SetMonth || id == SetFullYear ) { 679 681 result = jsNumber(makeTime(&t, ms, utc)); 680 this Obj->setInternalValue(result);682 thisDateObj->setInternalValue(result); 681 683 } 682 684 … … 735 737 } else if (numArgs == 1) { 736 738 if (args[0]->isObject(&DateInstance::info)) 737 value = static_cast< JSObject*>(args[0])->internalValue()->toNumber(exec);739 value = static_cast<DateInstance*>(args[0])->internalValue()->toNumber(exec); 738 740 else { 739 741 JSValue* primitive = args[0]->toPrimitive(exec);
Note:
See TracChangeset
for help on using the changeset viewer.