Changeset 1799 in webkit for trunk/JavaScriptCore/kjs/bool_object.cpp
- Timestamp:
- Aug 12, 2002, 1:14:02 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/bool_object.cpp
r798 r1799 53 53 // The constructor will be added later by InterpreterImp::InterpreterImp() 54 54 55 put(exec, "toString", Object(new BooleanProtoFuncImp(exec,funcProto,BooleanProtoFuncImp::ToString,0)), DontEnum);56 put(exec, "valueOf", Object(new BooleanProtoFuncImp(exec,funcProto,BooleanProtoFuncImp::ValueOf,0)), DontEnum);55 put(exec,toStringPropertyName, Object(new BooleanProtoFuncImp(exec,funcProto,BooleanProtoFuncImp::ToString,0)), DontEnum); 56 put(exec,valueOfPropertyName, Object(new BooleanProtoFuncImp(exec,funcProto,BooleanProtoFuncImp::ValueOf,0)), DontEnum); 57 57 setInternalValue(Boolean(false)); 58 58 } … … 66 66 { 67 67 Value protect(this); 68 put(exec, "length",Number(len),DontDelete|ReadOnly|DontEnum);68 put(exec,lengthPropertyName,Number(len),DontDelete|ReadOnly|DontEnum); 69 69 } 70 70 … … 105 105 { 106 106 Value protect(this); 107 put(exec, "prototype", Object(booleanProto),DontEnum|DontDelete|ReadOnly);107 put(exec,prototypePropertyName, Object(booleanProto),DontEnum|DontDelete|ReadOnly); 108 108 109 109 // no. of arguments for constructor 110 put(exec, "length", Number(1), ReadOnly|DontDelete|DontEnum);110 put(exec,lengthPropertyName, Number(1), ReadOnly|DontDelete|DontEnum); 111 111 } 112 112
Note:
See TracChangeset
for help on using the changeset viewer.