1 2 3 4 5 6 7 8 9 10 11 12 13 14
function testString() { var q; for (var i = 0; i <= 9; ++i) { q = []; q.push(String(void 0)); q.push(String(true)); q.push(String(5)); q.push(String(5.5)); q.push(String("5")); q.push(String([5])); } return q.join(","); } assertEq(testString(), "undefined,true,5,5.5,5,5");