diff options
| author | Jens Mönig <jens@moenig.org> | 2015-05-01 11:59:51 -0400 |
|---|---|---|
| committer | Jens Mönig <jens@moenig.org> | 2015-05-01 11:59:51 -0400 |
| commit | d96a5984e64cdd2e8c4abcd0abaabaadf7cc1c02 (patch) | |
| tree | 7b9d673f71bb88642a21ac6d481a3728aed8f74f /threads.js | |
| parent | 86e4170a571455d3f828fd2b1161313b3126beef (diff) | |
| download | snap-d96a5984e64cdd2e8c4abcd0abaabaadf7cc1c02.tar.gz snap-d96a5984e64cdd2e8c4abcd0abaabaadf7cc1c02.zip | |
return empty string when querying first letter of a list
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 = '2015-April-15'; +modules.threads = '2015-May-01'; var ThreadManager; var Process; @@ -2204,6 +2204,9 @@ Process.prototype.reportJoinWords = function (aList) { // Process string ops Process.prototype.reportLetter = function (idx, string) { + if (string instanceof List) { // catch a common user error + return ''; + } var i = +(idx || 0), str = (string || '').toString(); return str[i - 1] || ''; |
