rem: code += "if (y >= 0 && m >= 0 && d > 0 && h >= 0 && i >= 0 && s >= 0)\n" 
add: code += "if (u)\n" + "{v = new Date(u * 1000);}"         + "else if (y >= 0 && m >= 0 && d > 0 && h >= 0 && i >= 0 && s >= 0 && ms >= 0)\n" + "{v = new Date(y, m, d, h, i, s, ms);}\n" + "else if (y >= 0 && m >= 0 && d > 0 && h >= 0 && i >= 0 && s >= 0)\n" 
context: Date.createParser = function(format) {    var funcName = "parse" + Date.parseFunctions.count++;    var regexNum = Date.parseRegexes.length;    var currentGroup = 1;    Date.parseFunctions[format] = funcName;    var code = "Date." + funcName + " = function(input){\n"        + "var y = -1, m = -1, d = -1, h = -1, i = -1, s = -1, o, z, v;\n"        + "var d = new Date();\n"        + "y = d.getFullYear();\n"        + "m = d.getMonth();\n"        + "d = d.getDate();\n"        + "var results = input.match(Date.parseRegexes[" + regexNum + "]);\n"        + "if (results && results.length > 0) {";    var regex = "";    var special = false;    var ch = '';    for (var i = 0; i < format.length; ++i) {        ch = format.charAt(i);        if (!special && ch == "\\") {            special = true;        }        else if (special) {            special = false;            regex += String.escape(ch);        }        else {            var obj = Date.formatCodeToRegex(ch, currentGroup);            currentGroup += obj.g;            regex += obj.s;            if (obj.g && obj.c) {                code += obj.c;            }        }    }    code += "if (y >= 0 && m >= 0 && d > 0 && h >= 0 && i >= 0 && s >= 0)\n"        + "{v = new Date(y, m, d, h, i, s);}\n"        + "else if (y >= 0 && m >= 0 && d > 0 && h >= 0 && i >= 0)\n"        + "{v = new Date(y, m, d, h, i);}\n"        + "else if (y >= 0 && m >= 0 && d > 0 && h >= 0)\n"        + "{v = new Date(y, m, d, h);}\n"        + "else if (y >= 0 && m >= 0 && d > 0)\n"        + "{v = new Date(y, m, d);}\n"        + "else if (y >= 0 && m >= 0)\n"        + "{v = new Date(y, m);}\n"        + "else if (y >= 0)\n"        + "{v = new Date(y);}\n"        + "}return (v && (z || o))?\n"         + "    ((z)? v.add(Date.SECOND, (v.getTimezoneOffset() * 60) + (z*1)) :\n"         + "        v.add(Date.HOUR, (v.getGMTOffset() / 100) + (o / -100))) : v\n"         + ";}";    Date.parseRegexes[regexNum] = new RegExp("^" + regex + "$");    eval(code);};
meta: 2891	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2891/d109eea1e59fbb030ac98e95f181f72da9611a48/ext-all-debug.js/buggy/gemma-web/src/main/webapp/scripts/ext/ext-all-debug.js