fixed pausing the last block of a script

pull/95/head
jmoenig 2020-07-08 13:47:41 +02:00
rodzic b264578370
commit 599cb6c1ca
2 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -8,7 +8,7 @@
<script src="src/symbols.js?version=2020-07-01"></script>
<script src="src/widgets.js?version=2020-07-01"></script>
<script src="src/blocks.js?version=2020-07-02"></script>
<script src="src/threads.js?version=2020-07-02"></script>
<script src="src/threads.js?version=2020-07-08"></script>
<script src="src/objects.js?version=2020-07-01"></script>
<script src="src/gui.js?version=2020-07-01"></script>
<script src="src/paint.js?version=2020-05-17"></script>

Wyświetl plik

@ -61,7 +61,7 @@ StageMorph, SpriteMorph, StagePrompterMorph, Note, modules, isString, copy, Map,
isNil, WatcherMorph, List, ListWatcherMorph, alert, console, TableMorph, BLACK,
TableFrameMorph, ColorSlotMorph, isSnapObject, newCanvas, Symbol, SVG_Costume*/
modules.threads = '2020-July-02';
modules.threads = '2020-July-08';
var ThreadManager;
var Process;
@ -608,7 +608,7 @@ function Process(topBlock, receiver, onComplete, yieldFirst) {
// Process accessing
Process.prototype.isRunning = function () {
return (this.context !== null) && (!this.readyToTerminate);
return !this.readyToTerminate && (this.context || this.isPaused);
};
// Process entry points
@ -1553,7 +1553,7 @@ Process.prototype.reportGetVar = function () {
};
Process.prototype.doShowVar = function (varName) {
var varFrame = this.context.variables,
var varFrame = (this.context || this.homeContext).variables,
stage,
watcher,
target,