diff --git a/HISTORY.md b/HISTORY.md index be1d5c31..87120a02 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -5,11 +5,13 @@ * **Notable Changes:** * **Notable Fixes:** * list watchers occasionally didn't show cells after reassigning a changed list to a variable + * FOREACH over a linked list failed for scripts mutating it * **Translation Updates:** ### 2019-07-01 * new dev version * lists: fixed #2446 +* threads: fixed an issue when iterating over a linked list with a script mutating it, thanks, Brian! ## v5 ### 2019-06-27 diff --git a/snap.html b/snap.html index d07fe4b8..6588f793 100755 --- a/snap.html +++ b/snap.html @@ -7,7 +7,7 @@ - + diff --git a/src/threads.js b/src/threads.js index a9c5ed8e..1cbb601d 100644 --- a/src/threads.js +++ b/src/threads.js @@ -61,7 +61,7 @@ StageMorph, SpriteMorph, StagePrompterMorph, Note, modules, isString, copy, isNil, WatcherMorph, List, ListWatcherMorph, alert, console, TableMorph, Color, TableFrameMorph, ColorSlotMorph, isSnapObject, Map, newCanvas, Symbol*/ -modules.threads = '2019-June-25'; +modules.threads = '2019-July-01'; var ThreadManager; var Process; @@ -2173,8 +2173,6 @@ Process.prototype.doWaitUntil = function (goalCondition) { // Process interpolated iteration primitives Process.prototype.doForEach = function (upvar, list, script) { - -//Process.prototype.reportFindFirst = function (predicate, list) { // perform a script for each element of a list, assigning the // current iteration's element to a variable with the name // specified in the "upvar" parameter, so it can be referenced