rem: if (o[p] instanceof RegExp) 
add: if (isinstance(o[p], RegExp)) 
context:     function writeObjProps(o, indent)    {        function writeProp(name, val)        {            me._fileStream.write(indent + "\"" + ecmaEscape(name) + "\" " + val +                                 me.lineEnd);        };        for (var p in o)        {            switch (typeof o[p])            {                case "string":                    writeProp(p, '"' + ecmaEscape(o[p]) + '"');                    break;                case "number":                case "boolean":                case "null": // (just in case)                case "undefined":                    // These all serialise to what we want.                    writeProp(p, o[p]);                    break;                case "function":                    if (o[p] instanceof RegExp)                        writeProp(p, ecmaEscape("" + o[p]));                    // Can't serialize non-RegExp functions (yet).                    break;                case "object":                    if (o[p] == null)                    {                        // typeof null == "object", just to catch us out.                        writeProp(p, "null");                    }                    else                    {                        var className = "";                        if (o[p] instanceof Array)                            className = "<Array> ";                        me._fileStream.write(indent + "START " + className +                                             ecmaEscape(p) + me.lineEnd);                        writeObjProps(o[p], indent + "  ");                        me._fileStream.write(indent + "END" + me.lineEnd);                    }                    break;                default:                    // Can't handle anything else!            }        }    };
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/aedb529bd0a94624792b43137abb3dffe22f350f/text-serializer.js/clean/extensions/irc/js/lib/text-serializer.js