diff options
| author | Jens Mönig <jens@moenig.org> | 2015-05-01 11:59:17 -0400 |
|---|---|---|
| committer | Jens Mönig <jens@moenig.org> | 2015-05-01 11:59:17 -0400 |
| commit | b6efcaf17c0230d5eea3f3d8a6d30e142c8d67cf (patch) | |
| tree | e5a0886c3e73d354a81deee522b96af15d931ad2 /threads.js | |
| parent | c46d8093ef7c65958fd044a6b070df1f3ba84f51 (diff) | |
| download | snap-b6efcaf17c0230d5eea3f3d8a6d30e142c8d67cf.tar.gz snap-b6efcaf17c0230d5eea3f3d8a6d30e142c8d67cf.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; @@ -2185,6 +2185,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] || ''; |
