Changeset 31208 in webkit for trunk/JavaScriptCore/kjs/date_object.cpp
- Timestamp:
- Mar 21, 2008, 4:14:49 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/date_object.cpp
r31057 r31208 453 453 : InternalFunctionImp(funcProto, dateProto->classInfo()->className) 454 454 { 455 static const Identifier* parsePropertyName = new Identifier("parse");456 static const Identifier* UTCPropertyName = new Identifier("UTC");457 458 455 putDirect(exec->propertyNames().prototype, dateProto, DontEnum|DontDelete|ReadOnly); 459 putDirectFunction(new DateObjectFuncImp(exec, funcProto, DateObjectFuncImp::Parse, 1, *parsePropertyName), DontEnum);460 putDirectFunction(new DateObjectFuncImp(exec, funcProto, DateObjectFuncImp::UTC, 7, *UTCPropertyName), DontEnum);456 putDirectFunction(new DateObjectFuncImp(exec, funcProto, DateObjectFuncImp::Parse, 1, CommonIdentifiers::shared()->parse), DontEnum); 457 putDirectFunction(new DateObjectFuncImp(exec, funcProto, DateObjectFuncImp::UTC, 7, CommonIdentifiers::shared()->UTC), DontEnum); 461 458 putDirect(exec->propertyNames().length, 7, ReadOnly|DontDelete|DontEnum); 462 459 }
Note:
See TracChangeset
for help on using the changeset viewer.