Traces object. Only partially implemented.
var pairs = []; for(var prop in object){ try{ pairs.push([prop, object[prop]]); }catch(e){ /* squelch */ } } pairs.sort(function(a, b){ return a[0] < b[0] ? -1 : 1; }); var html = ['<table>']; for(var i = 0; i < pairs.length; ++i){ var name = pairs[i][0], value = pairs[i][1]; html.push('<tr>', '<td class="propertyNameCell"><span class="propertyName">', escapeHTML(name), '</span></td>', '<td><span class="propertyValue">'); appendObject(value, html); html.push('</span></td></tr>'); } html.push('</table>'); logRow(html, "dir");