var m = /^\{(.*)\}$/(s); if (!m) return false; var a2 = m[1].split(", "); if (a.length != a2.length) return false; a.sort(); a2.sort(); for (var i=0; i < a.length; i++) { if (a[i] != a2[i]) return false; } return true; 
var m = /^\{(.*)\}$/(s); if (!m) return false; var a2 = m[1].split(", "); if (a.length != a2.length) return false; a.sort(); a2.sort(); for (var i=0; i < a.length; i++) { if (a[i] != a2[i]) return false; } return true; 
function checkObjectToString(s, a) {    var m = /^\{(.*)\}$/(s);    if (!m)	return false;	// should begin and end with curly brackets    var a2 = m[1].split(", ");    if (a.length != a2.length)        return false;	// should be same length    a.sort();    a2.sort();    for (var i=0; i < a.length; i++) {        if (a[i] != a2[i])	    return false;	// should have identical elements     }    return true;}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/3703c3c05f398a63e55992f7687ef65273b26d6a/toString-001.js/buggy/js/tests/js1_2/Objects/toString-001.js