Changeset 31208 in webkit for trunk/JavaScriptCore/kjs/function_object.cpp
- Timestamp:
- Mar 21, 2008, 4:14:49 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/function_object.cpp
r30942 r31208 45 45 FunctionPrototype::FunctionPrototype(ExecState* exec) 46 46 { 47 static const Identifier* applyPropertyName = new Identifier("apply");48 static const Identifier* callPropertyName = new Identifier("call");49 50 47 putDirect(exec->propertyNames().length, jsNumber(0), DontDelete | ReadOnly | DontEnum); 51 48 52 49 putDirectFunction(new PrototypeFunction(exec, this, 0, exec->propertyNames().toString, functionProtoFuncToString), DontEnum); 53 putDirectFunction(new PrototypeFunction(exec, this, 2, *applyPropertyName, functionProtoFuncApply), DontEnum);54 putDirectFunction(new PrototypeFunction(exec, this, 1, *callPropertyName, functionProtoFuncCall), DontEnum);50 putDirectFunction(new PrototypeFunction(exec, this, 2, CommonIdentifiers::shared()->apply, functionProtoFuncApply), DontEnum); 51 putDirectFunction(new PrototypeFunction(exec, this, 1, CommonIdentifiers::shared()->call, functionProtoFuncCall), DontEnum); 55 52 } 56 53
Note:
See TracChangeset
for help on using the changeset viewer.