rem: idFromName_StringNormalized = idFromName.toString() ? idFromName.toString().toLowerCase() : idFromName.toString(); 
add: idFromName_StringNormalized = idFromName.number ? idFromName.number.toLowerCase() : idFromName.number; 
context: function idTest(name, iid, same){    result = true;    var idFromName = new nsID(name);    var idFromIID  = new nsID(iid);    if(!idFromName.isValid() || !idFromIID.isValid()) {        return (same && idFromName.isValid() == idFromIID.isValid()) ||               (!same && idFromName.isValid() != idFromIID.isValid());    }    if(same != idFromName.equals(idFromIID) ||       same != idFromIID.equals(idFromName)) {        print("iid equals test failed for "+name+" "+iid);        result = false;    }    nameNormalized = name.toLowerCase();    iidNormalized  = iid.toLowerCase();    idFromName_NameNormalized = idFromName.toName() ?                                     idFromName.toName().toLowerCase() :                                    idFromName.toName();    idFromIID_NameNormalized = idFromIID.toName() ?                                     idFromIID.toName().toLowerCase() :                                    idFromIID.toName();    idFromName_StringNormalized = idFromName.toString() ?                                     idFromName.toString().toLowerCase() :                                    idFromName.toString();    idFromIID_StringNormalized = idFromIID.toString() ?                                     idFromIID.toString().toLowerCase() :                                    idFromIID.toString();    if(idFromName_NameNormalized != nameNormalized ||       same != (idFromIID_NameNormalized == nameNormalized)) {        print("iid toName test failed for "+name+" "+iid);        result = false;    }    if(idFromIID_StringNormalized != iidNormalized ||       same != (idFromName_StringNormalized == iidNormalized)) {        print("iid toString test failed for "+name+" "+iid);        result = false;    }        if(!idFromName.equals(new nsID(idFromName)) ||        !idFromIID.equals(new nsID(idFromIID))) {        print("new id from id test failed for "+name+" "+iid);        result = false;    }    return result;}    
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/401f011bce238911aa9c65d0749332e672f5a4be/testxpc.js/buggy/js/src/xpconnect/test/testxpc.js