Home | History | Annotate | Download | only in mjsunit

Lines Matching full:join

28 // Array's toString should call the object's own join method, if one exists and
44 assertEquals(a1.join(), a1.toString());
46 // Non-standard "join" function is called correctly.
48 a2.join = testJoin;
52 // Non-callable join function is ignored and Object.prototype.toString is
55 a3.join = "not callable";
58 // Non-existing join function is treated same as non-callable.
61 // No join on Array.
70 join: Array.prototype.join};
71 assertEquals(o1.join(), o1.toString());
74 // Non-standard join is called correctly.
75 // Check that we don't read, e.g., length before calling join.
77 join: testJoin,
83 // Non-standard join is called even if it looks like an array.
86 join: testJoin};
90 // Non-callable join works same as for Array.
93 join: "not callable"};
97 // Non-existing join works same as for Array.
100 /* no join */};
104 // Test that ToObject is called before getting "join", so the instance
105 // that "join" is read from is the same one passed as receiver later.
108 Object.defineProperty(Number.prototype, "join", {get: function() {