Lines Matching refs:prototype
57 // SECTION1: define getter/setter directly on an object (not its prototype)
83 // SECTION2: define getter/setter in Object.prototype
84 Object.prototype.nameSETS = 0;
85 Object.prototype.nameGETS = 0;
86 Object.prototype.__defineSetter__(cnName, cnNameSetter);
87 Object.prototype.__defineGetter__(cnName, cnNameGetter);
110 // SECTION 3: define getter/setter in prototype of user-defined constructor
114 TestObject.prototype.nameSETS = 0;
115 TestObject.prototype.nameGETS = 0;
116 TestObject.prototype.__defineSetter__(cnName, cnNameSetter);
117 TestObject.prototype.__defineGetter__(cnName, cnNameGetter);
118 TestObject.prototype.name = cnDEFAULT;