rem: if (data == null) { batch.map[name] = "null:null"; return; 
add: if (data == null) { batch.map[name] = "null:null"; return; }  switch (typeof data) { case "boolean": batch.map[name] = "boolean:" + data; break;  case "number": batch.map[name] = "number:" + data; break;  case "string": batch.map[name] = "string:" + encodeURIComponent(data); break;  case "object": if (data.dwrSerialize) { batch.map[name] = data.dwrSerialize(batch, referto, data, name); 
context: DWREngine._serializeAll = function(batch, referto, data, name) {    if (data == null) {        batch.map[name] = "null:null";        return;    }    switch (typeof data) {    case "boolean":        batch.map[name] = "boolean:" + data;        break;    case "number":        batch.map[name] = "number:" + data;        break;    case "string":        batch.map[name] = "string:" + encodeURIComponent(data);        break;    case "object":        if (data.dwrSerialize) {            batch.map[name] = data.dwrSerialize(batch, referto, data, name);        }        else if (data.nodeName) {            batch.map[name] = DWREngine._serializeXml(batch, referto, data, name);        }        else {            if (DWREngine._warningHandler) {                DWREngine._warningHandler("Object without dwrSerialize: " + typeof data + ", attempting default converter.");            }            batch.map[name] = "default:" + data;        }        break;    case "function":        // We just ignore functions.        break;    default:        if (DWREngine._warningHandler) {            DWREngine._warningHandler("Unexpected type: " + typeof data + ", attempting default converter.");        }        batch.map[name] = "default:" + data;        break;    }};
meta: 266	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/769a5807f342d8541951d74937d724ab38fcafe0/engine.js/buggy/java/uk/ltd/getahead/dwr/engine.js