From b62fd6f470b68abb3bf45005f5cb251c69a92dff Mon Sep 17 00:00:00 2001 From: jmoenig Date: Wed, 27 May 2020 08:23:04 +0200 Subject: [PATCH] changed result for FIND to empty instead of false if none is found --- snap.html | 2 +- src/threads.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/snap.html b/snap.html index 8e6cc053..d087bb44 100755 --- a/snap.html +++ b/snap.html @@ -8,7 +8,7 @@ - + diff --git a/src/threads.js b/src/threads.js index 8662f790..5df1e15d 100644 --- a/src/threads.js +++ b/src/threads.js @@ -61,7 +61,7 @@ StageMorph, SpriteMorph, StagePrompterMorph, Note, modules, isString, copy, Map, isNil, WatcherMorph, List, ListWatcherMorph, alert, console, TableMorph, Color, TableFrameMorph, ColorSlotMorph, isSnapObject, newCanvas, Symbol, SVG_Costume*/ -modules.threads = '2020-May-24'; +modules.threads = '2020-May-27'; var ThreadManager; var Process; @@ -2657,7 +2657,7 @@ Process.prototype.reportFindFirst = function (predicate, list) { this.context.accumulator.source.cdr(); } if (this.context.accumulator.remaining === 0) { - this.returnValueToParentContext(false); + this.returnValueToParentContext(''); return; } index = this.context.accumulator.idx; @@ -2678,7 +2678,7 @@ Process.prototype.reportFindFirst = function (predicate, list) { } } if (this.context.accumulator.idx === list.length()) { - this.returnValueToParentContext(false); + this.returnValueToParentContext(''); return; } this.context.accumulator.idx += 1;