Changeset 1799 in webkit for trunk/JavaScriptCore/kjs/function_object.cpp
- Timestamp:
- Aug 12, 2002, 1:14:02 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/function_object.cpp
r1024 r1799 41 41 { 42 42 Value protect(this); 43 put(exec, "toString", Object(new FunctionProtoFuncImp(exec, this, FunctionProtoFuncImp::ToString, 0)), DontEnum);43 put(exec, toStringPropertyName, Object(new FunctionProtoFuncImp(exec, this, FunctionProtoFuncImp::ToString, 0)), DontEnum); 44 44 put(exec, "apply", Object(new FunctionProtoFuncImp(exec, this, FunctionProtoFuncImp::Apply, 2)), DontEnum); 45 45 put(exec, "call", Object(new FunctionProtoFuncImp(exec, this, FunctionProtoFuncImp::Call, 1)), DontEnum); … … 68 68 { 69 69 Value protect(this); 70 put(exec, "length",Number(len),DontDelete|ReadOnly|DontEnum);70 put(exec,lengthPropertyName,Number(len),DontDelete|ReadOnly|DontEnum); 71 71 } 72 72 … … 130 130 131 131 Object argArrayObj = Object::dynamicCast(argArray); 132 unsigned int length = argArrayObj.get(exec, "length").toUInt32(exec);132 unsigned int length = argArrayObj.get(exec,lengthPropertyName).toUInt32(exec); 133 133 for (unsigned int i = 0; i < length; i++) 134 applyArgs.append(argArrayObj.get(exec, UString::from(i)));134 applyArgs.append(argArrayObj.get(exec,i)); 135 135 } 136 136 else { … … 175 175 { 176 176 Value protect(this); 177 put(exec, "prototype", Object(funcProto), DontEnum|DontDelete|ReadOnly);177 put(exec,prototypePropertyName, Object(funcProto), DontEnum|DontDelete|ReadOnly); 178 178 179 179 // no. of arguments for constructor 180 put(exec, "length", Number(1), ReadOnly|DontDelete|DontEnum);180 put(exec,lengthPropertyName, Number(1), ReadOnly|DontDelete|DontEnum); 181 181 } 182 182 … … 276 276 } 277 277 278 fimp->put(exec, "length", Number(params),ReadOnly|DontDelete|DontEnum);278 fimp->put(exec,lengthPropertyName, Number(params),ReadOnly|DontDelete|DontEnum); 279 279 List consArgs; 280 280 … … 283 283 prototype.put(exec, "constructor", 284 284 Object(fimp), DontEnum|DontDelete|ReadOnly); 285 fimp->put(exec, "prototype",prototype,DontEnum|DontDelete|ReadOnly);285 fimp->put(exec,prototypePropertyName,prototype,DontEnum|DontDelete|ReadOnly); 286 286 fimp->put(exec,"arguments",Null(),DontEnum|DontDelete|ReadOnly); 287 287 return ret;
Note:
See TracChangeset
for help on using the changeset viewer.