rem: propMap[p] = { name: p, value: console.jsds.wrapValue(ex), flags: PROP_EXCEPTION }; 
add: propMap[":" + p] = { name: p, value: console.jsds.wrapValue(ex), flags: PROP_EXCEPTION }; 
context: function vr_listprops (){    //dd ("listProperties {");    var i;    var jsval = this.value.getWrappedValue();    var propMap = new Object();        /* get the enumerable properties */    for (var p in jsval)    {        var value;        try        {            value = console.jsds.wrapValue(jsval[p]);            if (this.showFunctions || value.jsType != TYPE_FUNCTION)            {                propMap[p] = { name: p, value: value,                               flags: PROP_ENUMERATE | PROP_HINTED };            }            else            {                //dd ("not including function " + name);                propMap[p] = null;            }        }        catch (ex)        {            propMap[p] = { name: p, value: console.jsds.wrapValue(ex),                           flags: PROP_EXCEPTION };        }    }        /* get the local properties, may or may not be enumerable */    var localProps = new Object()    this.value.getProperties(localProps, {});    localProps = localProps.value;    var len = localProps.length;    for (i = 0; i < len; ++i)    {        var prop = localProps[i];        if (!ASSERT(prop, "prop[" + i + "] is null"))            continue;                var name = prop.name.stringValue;                if (!(name in propMap))        {            if (this.showFunctions || prop.value.jsType != TYPE_FUNCTION)            {                //dd ("localProps: adding " + name + ", " + prop);                propMap[name] = { name: name, value: prop.value,                                  flags: prop.flags };            }            else            {                //dd ("not including function " + name);                propMap[name] = null;            }        }        else        {            if (propMap[name])                propMap[name].flags = prop.flags;        }    }        /* sort the property list */    var nameList = keys(propMap);    nameList.sort();    var propertyList = new Array();    for (i = 0; i < nameList.length; ++i)    {        name = nameList[i];        if (propMap[name])            propertyList.push (propMap[name]);    }    //dd ("} " + propertyList.length + " properties");    return propertyList;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0ce31a79343e29e27a5102a1ca9099fd6e804946/venkman-records.js/buggy/extensions/venkman/resources/content/venkman-records.js