tweaked outer script variable scope for TELL/ASK and OF

upd4.2
jmoenig 2018-07-12 07:47:34 +02:00
rodzic d6cca62618
commit dca7edcab4
2 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -4270,3 +4270,7 @@ Translation Updates:
* GUI: added support for "&lang:nn" url parameter, made it non-permanent
* Threads: fixed outer script variable scope for TELL/ASK and OF
* Tools: fixed JOIN WORDS and LIST -> SENTENCE
180711
------
* Threads: tweaked outer script variable scope for TELL/ASK and OF

Wyświetl plik

@ -62,7 +62,7 @@ StageMorph, SpriteMorph, StagePrompterMorph, Note, modules, isString, copy,
isNil, WatcherMorph, List, ListWatcherMorph, alert, console, TableMorph,
TableFrameMorph, ColorSlotMorph, isSnapObject*/
modules.threads = '2018-July-11';
modules.threads = '2018-July-12';
var ThreadManager;
var Process;
@ -3402,6 +3402,8 @@ Process.prototype.reportContextFor = function (context, otherObj) {
result.outerContext.variables = copy(result.outerContext.variables);
result.outerContext.receiver = otherObj;
if (result.outerContext.variables.parentFrame) {
result.outerContext.variables.parentFrame =
copy(result.outerContext.variables.parentFrame);
result.outerContext.variables.parentFrame.parentFrame =
otherObj.variables;
} else {