rem: if (word instanceof RegExp) 
add: if (isinstance(word, RegExp)) 
context: function my_list(word, file){    const NORMAL_FILE_TYPE = Components.interfaces.nsIFile.NORMAL_FILE_TYPE;    if (("_list" in this) && !this._list.done)        return false;    this._list = new Array();    this._list.string = word;    this._list.regexp = null;    this._list.done = false;    this._list.count = 0;    if (file)    {        var lfile = new LocalFile(file);        if (!lfile.localFile.exists())        {            // futils.umask may be 0022. Result is 0644.            lfile.localFile.create(NORMAL_FILE_TYPE, 0666 & ~futils.umask);        }        this._list.file = new LocalFile(lfile.localFile, ">");    }    if (word instanceof RegExp)    {        this._list.regexp = word;        this._list.string = "";        word = "";    }    if (word)        this.primServ.sendData("LIST " + fromUnicode(word, this) + "\n");    else        this.primServ.sendData("LIST\n");    return true;}
meta: 3298	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3298/fa2f0d3785a01134230a5a78d09850d54aacbc10/handlers.js/buggy/xul/content/handlers.js