Home | History | Annotate | Download | only in webkit

Lines Matching full:prototype

28 shouldBe("('').__proto__", "String.prototype");
29 shouldBe("(0).__proto__", "Number.prototype");
30 shouldBe("([]).__proto__", "Array.prototype");
31 shouldBe("({}).__proto__", "Object.prototype");
32 shouldBe("(new Date).__proto__", "Date.prototype");
33 shouldBe("(new Number).__proto__", "Number.prototype");
34 shouldBe("(new Object).__proto__", "Object.prototype");
35 shouldBe("(new String).__proto__", "String.prototype");
36 shouldBe("Array.prototype.__proto__", "Object.prototype");
37 shouldBe("Date.prototype.__proto__", "Object.prototype");
38 shouldBe("Number.prototype.__proto__", "Object.prototype");
39 shouldBe("Object.prototype.__proto__", "null");
40 shouldBe("String.prototype.__proto__", "Object.prototype");
48 shouldBe("Object.getPrototypeOf([])", "Array.prototype");
49 shouldBe("Object.getPrototypeOf({})", "Object.prototype");
50 shouldBe("Object.getPrototypeOf(new Date)", "Date.prototype");
51 shouldBe("Object.getPrototypeOf(new Number)", "Number.prototype");
52 shouldBe("Object.getPrototypeOf(new Object)", "Object.prototype");
53 shouldBe("Object.getPrototypeOf(new String)", "String.prototype");
54 shouldBe("Object.getPrototypeOf(Array.prototype)", "Object.prototype");
55 shouldBe("Object.getPrototypeOf(Date.prototype)", "Object.prototype");
56 shouldBe("Object.getPrototypeOf(Number.prototype)", "Object.prototype");
57 shouldBe("Object.getPrototypeOf(Object.prototype)", "null");
58 shouldBe("Object.getPrototypeOf(String.prototype)", "Object.prototype");
64 shouldBeFalse("String.prototype.isPrototypeOf('')");
65 shouldBeFalse("Number.prototype.isPrototypeOf(0)");
66 shouldBeTrue("Array.prototype.isPrototypeOf([])");
67 shouldBeTrue("Object.prototype.isPrototypeOf({})");
68 shouldBeTrue("Date.prototype.isPrototypeOf(new Date)");
69 shouldBeTrue("Number.prototype.isPrototypeOf(new Number)");
70 shouldBeTrue("Object.prototype.isPrototypeOf(new Object)");
71 shouldBeTrue("String.prototype.isPrototypeOf(new String)");
72 shouldBeTrue("Object.prototype.isPrototypeOf(Array.prototype)");
73 shouldBeTrue("Object.prototype.isPrototypeOf(Date.prototype)");
74 shouldBeTrue("Object.prototype.isPrototypeOf(Number.prototype)");
75 shouldBeTrue("Object.prototype.isPrototypeOf(String.prototype)");
86 // Deleting Object.prototype.__proto__ removes the ability to set the object's prototype.
89 delete Object.prototype.__proto__;