kopia lustrzana https://github.com/backface/turtlestitch
accept lists as inputs to the green (text) LENGTH OF reporter
rodzic
0e27d975c6
commit
f0268d9cd8
|
@ -2030,4 +2030,8 @@ ______
|
||||||
131205
|
131205
|
||||||
------
|
------
|
||||||
* Threads: fixed literal-to-non-literal zero-value comparison bug
|
* Threads: fixed literal-to-non-literal zero-value comparison bug
|
||||||
* Objects: fixed #264 (mapped <ctrl-enter> to green-flag instead of <enter>
|
* Objects: fixed #264 (mapped <ctrl-enter> to green-flag instead of <enter>)
|
||||||
|
|
||||||
|
131211
|
||||||
|
------
|
||||||
|
* Threads: accept lists as inputs to the green (text) LENGTH OF reporter
|
||||||
|
|
|
@ -83,7 +83,7 @@ ArgLabelMorph, localize, XML_Element, hex_sha512*/
|
||||||
|
|
||||||
// Global stuff ////////////////////////////////////////////////////////
|
// Global stuff ////////////////////////////////////////////////////////
|
||||||
|
|
||||||
modules.threads = '2013-December-05';
|
modules.threads = '2013-December-11';
|
||||||
|
|
||||||
var ThreadManager;
|
var ThreadManager;
|
||||||
var Process;
|
var Process;
|
||||||
|
@ -2058,6 +2058,9 @@ Process.prototype.reportLetter = function (idx, string) {
|
||||||
};
|
};
|
||||||
|
|
||||||
Process.prototype.reportStringSize = function (string) {
|
Process.prototype.reportStringSize = function (string) {
|
||||||
|
if (string instanceof List) { // catch a common user error
|
||||||
|
return string.length();
|
||||||
|
}
|
||||||
var str = (string || '').toString();
|
var str = (string || '').toString();
|
||||||
return str.length;
|
return str.length;
|
||||||
};
|
};
|
||||||
|
|
Ładowanie…
Reference in New Issue