rem: entry = client.munger.entries[ary[1]]; 
add: var entry = client.munger.entries[ary[1]]; 
context: function writePref(prefName){    function clearPref(prefName)    {        try        {            client.prefBranch.clearUserPref (prefName);        }        catch (ex)        {            // ignore missing pref exception        }    };    var ary;    if (prefName in client.prefSpecs)    {        var varName = client.prefSpecs[prefName][0];        var defaultValue = client.prefSpecs[prefName][1];        var prefValue = eval(varName);                if (prefValue != defaultValue)        {            if (typeof defaultValue == "boolean")                client.prefBranch.setBoolPref(prefName, prefValue);            else if (typeof defaultValue == "number")                client.prefBranch.setIntPref(prefName, prefValue);            else if (defaultValue instanceof Array)                client.prefBranch.setCharPref(prefName, prefValue.join("; "));            else                client.prefBranch.setCharPref(prefName, prefValue);        }        else        {            clearPref(prefName);        }    }    else if ((ary = prefName.match(/munger\.(.*)/)) &&              ary[1] in client.munger.entries)    {        entry = client.munger.entries[ary[1]];        if (entry.enabled != entry.enabledDefault)            client.prefBranch.setBoolPref(prefName, entry.enabled);        else            clearPref (prefName);    }    else    {        dd ("writePref: UNKNOWN PREF ``" + prefName + "''");    }    if (!("prefLock" in client))        client.prefService.savePrefFile(null);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/fa359690d17fc0358c5ed06036e22e12abc609c5/readprefs.js/buggy/extensions/irc/xul/content/readprefs.js