yield after each cycle in the experimental “forEach” primitive

thanks, Bernat, for reporting this bug!
pull/3/merge
jmoenig 2014-12-11 14:17:29 +01:00
rodzic 8338384bf5
commit 0a239b703c
2 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -2390,3 +2390,7 @@ ______
141206
------
* Store: Fixed #668
141211
------
* Threads: yield after each cycle in the experimental “forEach” primitive

Wyświetl plik

@ -83,7 +83,7 @@ ArgLabelMorph, localize, XML_Element, hex_sha512*/
// Global stuff ////////////////////////////////////////////////////////
modules.threads = '2014-December-04';
modules.threads = '2014-December-11';
var ThreadManager;
var Process;
@ -1695,6 +1695,7 @@ Process.prototype.doForEach = function (upvar, list, script) {
);
if (index > list.length()) {return; }
this.context.inputs[3] += 1;
this.pushContext('doYield');
this.pushContext();
this.evaluate(script, new List(), true);
};