diff options
| author | jmoenig <jens@moenig.org> | 2013-12-11 10:20:40 +0100 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2013-12-11 10:20:40 +0100 |
| commit | f0268d9cd81b6869eaeb9d7729806fd9d33573ab (patch) | |
| tree | 6c2b459141fb65808c47e651abfc64d5a4f379ea /threads.js | |
| parent | 0e27d975c6e587b7f7c72ef6b960e21a0663388c (diff) | |
| download | snap-f0268d9cd81b6869eaeb9d7729806fd9d33573ab.tar.gz snap-f0268d9cd81b6869eaeb9d7729806fd9d33573ab.zip | |
accept lists as inputs to the green (text) LENGTH OF reporter
Diffstat (limited to 'threads.js')
| -rw-r--r-- | threads.js | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; }; |
