Home | History | Annotate | Download | only in mjsunit

Lines Matching refs:to

13 //       contributors may be used to endorse or promote products derived
18 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
30 * assertEquals(..., ...) to not rely on the details of the
54 // Object where ToPrimitive returns value by failover to toString when
65 // Numbers are equal if same, unless NaN, which isn't equal to anything, and
99 // Null and undefined are equal to themselves.
130 // Null and undefined are equal to each-other, and to nothing else.
145 // Numbers compared to Strings will convert the string to a number using
154 // Booleans compared to anything else will be converted to numbers.
157 testEqual(false, "0"); // String also converted to number.
160 // Objects compared to Number or String (or Boolean, since that's converted
161 // to Number too) is converted to primitive using ToPrimitive with NO HINT.
166 testEqual(new Boolean(true), 1); // First to primtive boolean, then to number.
185 // Date objects convert to string, not number (and the string does not
186 // convert to the number).
204 // Objects compared to other objects, or to null and undefined, are not
205 // converted to primitive.
215 // Object that can't be converted to primitive.