Home | History | Annotate | Download | only in mjsunit

Lines Matching refs:prototype

29 // prototype used for instances in that case should be the initial
30 // object prototype. ECMA-262 13.2.2.
33 F.prototype = value;
35 assertEquals(value, F.prototype);
36 assertEquals(Object.prototype, f.__proto__);
47 assertEquals(f.__proto__, F.prototype);
48 F.prototype = 42;
50 assertEquals(Object.prototype, f.__proto__);
51 assertEquals(42, F.prototype);
52 F.prototype = { a: 42 };
54 assertEquals(42, F.prototype.a);
55 assertEquals(f.__proto__, F.prototype);
63 return f.prototype;
70 // Check that getting the prototype of a tagged integer works.
75 assertEquals(NoPrototypeYet.prototype, p);
78 NonObjectPrototype.prototype = 42;
82 var p = NoInitialMap.prototype;
86 assertEquals(F.prototype, GetPrototypeOf(F));
88 // Check that getting the prototype of a non-function works. This must
91 assertEquals(87, GetPrototypeOf({prototype:87}));
93 // Check the prototype is not enumerable, for compatibility with