Changeset 12911 in webkit for trunk/JavaScriptCore/kjs/bool_object.cpp
- Timestamp:
- Feb 20, 2006, 11:54:55 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/bool_object.cpp
r12317 r12911 47 47 // ECMA 15.6.4 48 48 49 BooleanPrototype::BooleanPrototype(ExecState *exec, 50 ObjectPrototype *objectProto, 51 FunctionPrototype *funcProto) 49 BooleanPrototype::BooleanPrototype(ExecState* exec, ObjectPrototype* objectProto, FunctionPrototype* funcProto) 52 50 : BooleanInstance(objectProto) 53 51 { 54 52 // The constructor will be added later by InterpreterImp::InterpreterImp() 55 53 56 putDirect (toStringPropertyName, new BooleanProtoFunc(exec,funcProto,BooleanProtoFunc::ToString,0), DontEnum);57 putDirect (valueOfPropertyName, new BooleanProtoFunc(exec,funcProto,BooleanProtoFunc::ValueOf,0), DontEnum);54 putDirectFunction(new BooleanProtoFunc(exec, funcProto, BooleanProtoFunc::ToString, 0, toStringPropertyName), DontEnum); 55 putDirectFunction(new BooleanProtoFunc(exec, funcProto, BooleanProtoFunc::ValueOf, 0, valueOfPropertyName), DontEnum); 58 56 setInternalValue(jsBoolean(false)); 59 57 } … … 62 60 // ------------------------------ BooleanProtoFunc -------------------------- 63 61 64 BooleanProtoFunc::BooleanProtoFunc(ExecState *exec,65 FunctionPrototype *funcProto, int i, int len)66 : InternalFunctionImp(funcProto), id(i)62 BooleanProtoFunc::BooleanProtoFunc(ExecState*, FunctionPrototype* funcProto, int i, int len, const Identifier& name) 63 : InternalFunctionImp(funcProto, name) 64 , id(i) 67 65 { 68 66 putDirect(lengthPropertyName, len, DontDelete|ReadOnly|DontEnum);
Note:
See TracChangeset
for help on using the changeset viewer.