diff --git a/src/threads.js b/src/threads.js index adee886c..22556419 100644 --- a/src/threads.js +++ b/src/threads.js @@ -4344,7 +4344,7 @@ Process.prototype.reportStringSize = function (data) { if (data instanceof List) { // catch a common user error return data.length(); } - return isNil(data) ? 0 : data.toString().length; + return isNil(data) ? 0 : Array.from(data.toString()).length; }; Process.prototype.reportUnicode = function (string) {