Lines Matching refs:prototype
52 // 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);
114 // SECTION 3: define getter/setter in prototype of user-defined constructor
118 TestObject.prototype.nameSETS = 0;
119 TestObject.prototype.nameGETS = 0;
120 TestObject.prototype.__defineSetter__(cnName, cnNameSetter);
121 TestObject.prototype.__defineGetter__(cnName, cnNameGetter);
122 TestObject.prototype.name = cnDEFAULT;
125 status = 'In SECTION3 of test after 1 set, 0 gets'; // (we set a default value in the prototype)
151 expect = [1,0]; // we set a default value in the prototype -