rem: else if (defaultValue instanceof Array) 
add: else if (isinstance(defaultValue, Array)) 
context: function pm_setpref(prefName, value){    var prefManager = this;    function updateArrayPref() { prefManager.updateArrayPref(prefName); };    var record = this.prefRecords[prefName];    if (!ASSERT(record, "Unknown pref: " + prefName))        return null;    var defaultValue = record.defaultValue;    if (typeof defaultValue == "function")        defaultValue = defaultValue(prefName);    if ((record.realValue == null && value == defaultValue) ||        record.realValue == value)    {        // no realvalue, and value is the same as default value ... OR ...        // no change at all.  just bail.        return record.realValue;    }    if (value == defaultValue)    {        this.clearPref(prefName);        return value;    }    if (typeof defaultValue == "boolean")    {        this.prefBranch.setBoolPref(prefName, value);    }    else if (typeof defaultValue == "number")    {        this.prefBranch.setIntPref(prefName, value);    }    else if (defaultValue instanceof Array)    {        var str = this.arrayToString(value);        this.prefBranch.setCharPref(prefName, str);        value.update = updateArrayPref;    }    else    {        this.prefBranch.setCharPref(prefName, fromUnicode(value, PREF_CHARSET));    }    this.delayedSave();    record.realValue = value;    return value;}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/8a4c1438e6f081cd75d935bb18b94aa2f994c631/pref-manager.js/buggy/extensions/irc/js/lib/pref-manager.js