From 3c209e84218262dc78024f8ea696605c2384a6ea Mon Sep 17 00:00:00 2001 From: jmoenig Date: Thu, 17 Oct 2013 18:56:35 +0200 Subject: fixed #213 - Empty else block breaks return to caller Thanks, Art, for reporting this bug! --- threads.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'threads.js') diff --git a/threads.js b/threads.js index 8b0e25b..9b347f9 100644 --- a/threads.js +++ b/threads.js @@ -83,7 +83,7 @@ ArgLabelMorph, localize, XML_Element, hex_sha512*/ // Global stuff //////////////////////////////////////////////////////// -modules.threads = '2013-October-09'; +modules.threads = '2013-October-17'; var ThreadManager; var Process; @@ -1318,6 +1318,8 @@ Process.prototype.doIfElse = function () { } else { if (args[2]) { this.pushContext(args[2].blockSequence(), outer); + } else { + this.pushContext('doYield'); } } if (this.context) { -- cgit v1.3.1