Changeset 440 for trunk/JavaScriptCore/kjs/DateConstructor.cpp
- Timestamp:
- 08/18/08 11:14:49 (5 months ago)
- Files:
-
- trunk/JavaScriptCore/kjs/DateConstructor.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/JavaScriptCore/kjs/DateConstructor.cpp
r424 r440 46 46 // TODO: MakeTime (15.9.11.1) etc. ? 47 47 48 ASSERT_CLASS_FITS_IN_CELL(DateConstructor); 49 48 50 static JSValue* dateParse(ExecState*, JSObject*, JSValue*, const ArgList&); 49 51 static JSValue* dateNow(ExecState*, JSObject*, JSValue*, const ArgList&); … … 51 53 52 54 DateConstructor::DateConstructor(ExecState* exec, FunctionPrototype* functionPrototype, DatePrototype* datePrototype) 53 : InternalFunction( functionPrototype, Identifier(exec, datePrototype->classInfo()->className))55 : InternalFunction(exec, functionPrototype, Identifier(exec, datePrototype->classInfo()->className)) 54 56 { 55 57 putDirect(exec->propertyNames().prototype, datePrototype, DontEnum|DontDelete|ReadOnly); 56 58 57 putDirectFunction( new (exec) PrototypeFunction(exec, functionPrototype, 1, exec->propertyNames().parse, dateParse), DontEnum);58 putDirectFunction( new (exec) PrototypeFunction(exec, functionPrototype, 7, exec->propertyNames().UTC, dateUTC), DontEnum);59 putDirectFunction( new (exec) PrototypeFunction(exec, functionPrototype, 0, exec->propertyNames().now, dateNow), DontEnum);59 putDirectFunction(exec, new (exec) PrototypeFunction(exec, functionPrototype, 1, exec->propertyNames().parse, dateParse), DontEnum); 60 putDirectFunction(exec, new (exec) PrototypeFunction(exec, functionPrototype, 7, exec->propertyNames().UTC, dateUTC), DontEnum); 61 putDirectFunction(exec, new (exec) PrototypeFunction(exec, functionPrototype, 0, exec->propertyNames().now, dateNow), DontEnum); 60 62 61 63 putDirect(exec, exec->propertyNames().length, 7, ReadOnly | DontEnum | DontDelete);
