summaryrefslogtreecommitdiff
path: root/threads.js
diff options
context:
space:
mode:
Diffstat (limited to 'threads.js')
-rw-r--r--threads.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/threads.js b/threads.js
index 0674d94..6b73164 100644
--- a/threads.js
+++ b/threads.js
@@ -83,7 +83,7 @@ ArgLabelMorph, localize, XML_Element, hex_sha512*/
// Global stuff ////////////////////////////////////////////////////////
-modules.threads = '2013-July-30';
+modules.threads = '2013-July-31';
var ThreadManager;
var Process;
@@ -2000,6 +2000,18 @@ Process.prototype.reportUnicodeAsLetter = function (num) {
return String.fromCharCode(code);
};
+Process.prototype.reportTextSplit = function (string, delimiter) {
+ var str = (string || '').toString(),
+ del;
+
+ if (this.inputOption(delimiter) === '--line--') {
+ del = '\n';
+ } else {
+ del = (delimiter || '').toString();
+ }
+ return new List(str.split(del));
+};
+
// Process debugging
Process.prototype.alert = function (data) {