Home | History | Annotate | Download | only in harmony

Lines Matching defs:derived

10   function Derived() {
13 Derived.prototype = Object.create(Base.prototype);
20 assertEquals("Base this is Derived", super.f());
24 return "Derived"
29 Derived.prototype.toString = function() { return "this is Derived"; };
30 Derived.prototype.x = 27;
31 Derived.prototype.f = fDerived.toMethod(Derived.prototype);
34 assertEquals("Derived", new Derived().f());
48 var derived;
52 assertSame(this, derived);
58 function Derived() {}
59 Derived.__proto__ = Base;
60 Derived.prototype = {
62 constructor: Derived,
63 _x: 'derived'
65 Derived.prototype.testGetter = function() {
67 }.toMethod(Derived.prototype);
68 derived = new Derived();
69 assertEquals('derived', derived.testGetter());
87 function Derived() {}
88 Derived.__proto__ = Base;
89 Derived.prototype = {
91 constructor: Derived,
92 _x: 'derived'
94 Derived.prototype.testSetter = function() {
96 }.toMethod(Derived.prototype);
97 var d = new Derived();
114 function Derived() {}
115 Derived.__proto__ = Base;
116 Derived.prototype = {
118 constructor: Derived,
119 _x: 'derived'
121 Derived.prototype.testGetter = function() {
123 }.toMethod(Derived.prototype);
124 assertEquals('derived', new Derived()[0]);
125 // assertEquals('derived', new Derived().testGetter());