kopia lustrzana https://github.com/backface/turtlestitch
Fix some typecasting edge cases
rodzic
1b4bf22d94
commit
3250969c2f
|
@ -2688,7 +2688,7 @@ Process.prototype.reportStringSize = function (data) {
|
|||
};
|
||||
|
||||
Process.prototype.reportUnicode = function (string) {
|
||||
var str = (string || '\u0000').toString()[0];
|
||||
var str = isNil(string) ? '\u0000' : string.toString();
|
||||
|
||||
if (str.codePointAt) { // support for Unicode in newer browsers.
|
||||
return str.codePointAt(0);
|
||||
|
|
Ładowanie…
Reference in New Issue