Changeset 11447 in webkit for trunk/JavaScriptCore/kjs/object_object.cpp
- Timestamp:
- Dec 4, 2005, 3:28:56 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/object_object.cpp
r10701 r11447 39 39 : ObjectImp() // [[Prototype]] is Null() 40 40 { 41 putDirect(toStringPropertyName, new ObjectProtoFuncImp(exec,funcProto,ObjectProtoFuncImp::ToString, 0), DontEnum); 42 putDirect(toLocaleStringPropertyName, new ObjectProtoFuncImp(exec,funcProto,ObjectProtoFuncImp::ToLocaleString,0), DontEnum); 43 putDirect(valueOfPropertyName, new ObjectProtoFuncImp(exec,funcProto,ObjectProtoFuncImp::ValueOf, 0), DontEnum); 44 putDirect("hasOwnProperty", new ObjectProtoFuncImp(exec,funcProto,ObjectProtoFuncImp::HasOwnProperty, 1), DontEnum); 41 putDirect(toStringPropertyName, new ObjectProtoFuncImp(exec, funcProto, ObjectProtoFuncImp::ToString, 0), DontEnum); 42 putDirect(toLocaleStringPropertyName, new ObjectProtoFuncImp(exec, funcProto, ObjectProtoFuncImp::ToLocaleString, 0), DontEnum); 43 putDirect(valueOfPropertyName, new ObjectProtoFuncImp(exec, funcProto, ObjectProtoFuncImp::ValueOf, 0), DontEnum); 44 putDirect("hasOwnProperty", new ObjectProtoFuncImp(exec, funcProto, ObjectProtoFuncImp::HasOwnProperty, 1), DontEnum); 45 putDirect("propertyIsEnumerable", new ObjectProtoFuncImp(exec, funcProto, ObjectProtoFuncImp::PropertyIsEnumerable, 1), DontEnum); 45 46 } 46 47 … … 62 63 } 63 64 64 // ECMA 15.2.4.2, 15.2.4.4, 15.2.4.5 65 // ECMA 15.2.4.2, 15.2.4.4, 15.2.4.5, 15.2.4.7 65 66 66 67 ValueImp *ObjectProtoFuncImp::callAsFunction(ExecState *exec, ObjectImp *thisObj, const List &args) … … 73 74 return jsBoolean(thisObj->getOwnPropertySlot(exec, Identifier(args[0]->toString(exec)), slot)); 74 75 } 76 case PropertyIsEnumerable: 77 return jsBoolean(thisObj->propertyIsEnumerable(exec, Identifier(args[0]->toString(exec)))); 75 78 case ToLocaleString: 76 79 return jsString(thisObj->toString(exec));
Note:
See TracChangeset
for help on using the changeset viewer.