From f0268d9cd81b6869eaeb9d7729806fd9d33573ab Mon Sep 17 00:00:00 2001 From: jmoenig Date: Wed, 11 Dec 2013 10:20:40 +0100 Subject: accept lists as inputs to the green (text) LENGTH OF reporter --- threads.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'threads.js') diff --git a/threads.js b/threads.js index fe5540c..d1e57d3 100644 --- a/threads.js +++ b/threads.js @@ -83,7 +83,7 @@ ArgLabelMorph, localize, XML_Element, hex_sha512*/ // Global stuff //////////////////////////////////////////////////////// -modules.threads = '2013-December-05'; +modules.threads = '2013-December-11'; var ThreadManager; var Process; @@ -2058,6 +2058,9 @@ Process.prototype.reportLetter = function (idx, string) { }; Process.prototype.reportStringSize = function (string) { + if (string instanceof List) { // catch a common user error + return string.length(); + } var str = (string || '').toString(); return str.length; }; -- cgit v1.3.1