Changeset 1799 in webkit for trunk/JavaScriptCore/kjs/object_object.cpp
- Timestamp:
- Aug 12, 2002, 1:14:02 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/object_object.cpp
r1024 r1799 39 39 { 40 40 Value protect(this); 41 put(exec, "toString", Object(new ObjectProtoFuncImp(exec,funcProto,ObjectProtoFuncImp::ToString, 0)), DontEnum);42 put(exec, "valueOf", Object(new ObjectProtoFuncImp(exec,funcProto,ObjectProtoFuncImp::ValueOf, 0)), DontEnum);41 put(exec,toStringPropertyName, Object(new ObjectProtoFuncImp(exec,funcProto,ObjectProtoFuncImp::ToString, 0)), DontEnum); 42 put(exec,valueOfPropertyName, Object(new ObjectProtoFuncImp(exec,funcProto,ObjectProtoFuncImp::ValueOf, 0)), DontEnum); 43 43 } 44 44 … … 52 52 { 53 53 Value protect(this); 54 put(exec, "length",Number(len),DontDelete|ReadOnly|DontEnum);54 put(exec,lengthPropertyName,Number(len),DontDelete|ReadOnly|DontEnum); 55 55 } 56 56 … … 80 80 Value protect(this); 81 81 // ECMA 15.2.3.1 82 put(exec, "prototype", Object(objProto), DontEnum|DontDelete|ReadOnly);82 put(exec,prototypePropertyName, Object(objProto), DontEnum|DontDelete|ReadOnly); 83 83 84 84 // no. of arguments for constructor 85 put(exec, "length", Number(1), ReadOnly|DontDelete|DontEnum);85 put(exec,lengthPropertyName, Number(1), ReadOnly|DontDelete|DontEnum); 86 86 } 87 87
Note:
See TracChangeset
for help on using the changeset viewer.