Lines Matching refs:Subclass
17 class Subclass extends Base { class in TestArgumentsAccess
26 let s = new Subclass(3,4);
27 assertEquals(0, Subclass.length);
51 class Subclass extends Base { class in TestThisAccessRestriction
72 let s = new Subclass(2, -1);
100 assertThrows(function() { Subclass.call(new Object(), 1, 2); }, TypeError);
172 class Subclass extends Base { class in TestPrototypeWiring
178 let s = new Subclass(1);
180 assertSame(Subclass.prototype, s.__proto__);
182 let s1 = new Subclass(1, 2);
184 assertTrue(s1.__proto__ === Subclass.prototype);
186 let s2 = new Subclass();
188 assertSame(Subclass.prototype, s2.__proto__);
189 assertThrows(function() { Subclass(1); }, TypeError);
190 assertThrows(function() { Subclass(1,2,3,4); }, TypeError);
192 class Subclass2 extends Subclass {
254 class Subclass extends Base { class in TestSubclassBinding
261 let f = Subclass.bind(obj);
266 assertSame(Subclass.prototype, s.__proto__);
271 assertSame(Subclass.prototype, s1.__proto__);
273 let g = Subclass.bind(obj, 1);
278 assertSame(Subclass.prototype, s.__proto__);