Fix a int 0 bug in green length of block

dev
Michael Ball 2016-07-19 02:54:52 -07:00
rodzic 04b4c6678d
commit 78a627df27
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -2407,7 +2407,7 @@ Process.prototype.reportLetter = function (idx, string) {
return '';
}
var i = +(idx || 0),
str = (string || '').toString();
str = isNil(string) ? '' : string.toString();
return str[i - 1] || '';
};
@ -2416,7 +2416,7 @@ Process.prototype.reportStringSize = function (data) {
return data.length();
}
return (isNil(data) ? '' : data).toString().length;
return isNil(data) ? 0 : data.toString().length;
};
Process.prototype.reportUnicode = function (string) {