Changeset 20310 in webkit for trunk/JavaScriptCore/kjs/date_object.cpp
- Timestamp:
- Mar 18, 2007, 10:43:47 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/date_object.cpp
r20205 r20310 434 434 // ------------------------------ DateProtoFunc ----------------------------- 435 435 436 DateProtoFunc::DateProtoFunc(ExecState *exec, int i, int len, const Identifier& name)436 DateProtoFunc::DateProtoFunc(ExecState* exec, int i, int len, const Identifier& name) 437 437 : InternalFunctionImp(static_cast<FunctionPrototype*>(exec->lexicalInterpreter()->builtinFunctionPrototype()), name) 438 438 , id(abs(i)) … … 440 440 // We use a negative ID to denote the "UTC" variant. 441 441 { 442 putDirect( lengthPropertyName, len, DontDelete|ReadOnly|DontEnum);442 putDirect(exec->propertyNames().length, len, DontDelete|ReadOnly|DontEnum); 443 443 } 444 444 … … 600 600 static const Identifier* UTCPropertyName = new Identifier("UTC"); 601 601 602 putDirect( prototypePropertyName, dateProto, DontEnum|DontDelete|ReadOnly);602 putDirect(exec->propertyNames().prototype, dateProto, DontEnum|DontDelete|ReadOnly); 603 603 putDirectFunction(new DateObjectFuncImp(exec, funcProto, DateObjectFuncImp::Parse, 1, *parsePropertyName), DontEnum); 604 604 putDirectFunction(new DateObjectFuncImp(exec, funcProto, DateObjectFuncImp::UTC, 7, *UTCPropertyName), DontEnum); 605 putDirect( lengthPropertyName, 7, ReadOnly|DontDelete|DontEnum);605 putDirect(exec->propertyNames().length, 7, ReadOnly|DontDelete|DontEnum); 606 606 } 607 607 … … 669 669 // ------------------------------ DateObjectFuncImp ---------------------------- 670 670 671 DateObjectFuncImp::DateObjectFuncImp(ExecState* , FunctionPrototype* funcProto, int i, int len, const Identifier& name)671 DateObjectFuncImp::DateObjectFuncImp(ExecState* exec, FunctionPrototype* funcProto, int i, int len, const Identifier& name) 672 672 : InternalFunctionImp(funcProto, name), id(i) 673 673 { 674 putDirect( lengthPropertyName, len, DontDelete|ReadOnly|DontEnum);674 putDirect(exec->propertyNames().length, len, DontDelete|ReadOnly|DontEnum); 675 675 } 676 676
Note:
See TracChangeset
for help on using the changeset viewer.