summaryrefslogtreecommitdiff
path: root/threads.js
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2015-01-08 19:30:02 +0100
committerGubolin <gubolin@fantasymail.de>2015-01-08 19:30:02 +0100
commit4d0e06ff5903d7ab56d5e25a71062ff40e0904cc (patch)
tree6c0f60fe8405c82da4a53253c847c1a0acda6011 /threads.js
parent2631b384cab44d8416b865d7ed666e844930092f (diff)
parent27370676f2bf925c3a8498fc2dfef959e1aa45bd (diff)
downloadsnap-4d0e06ff5903d7ab56d5e25a71062ff40e0904cc.tar.gz
snap-4d0e06ff5903d7ab56d5e25a71062ff40e0904cc.zip
Merge branch 'master' into mobileapp
Diffstat (limited to 'threads.js')
-rw-r--r--threads.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/threads.js b/threads.js
index f8ab3ff..8780de5 100644
--- a/threads.js
+++ b/threads.js
@@ -83,7 +83,7 @@ ArgLabelMorph, localize, XML_Element, hex_sha512*/
// Global stuff ////////////////////////////////////////////////////////
-modules.threads = '2014-December-11';
+modules.threads = '2014-December-17';
var ThreadManager;
var Process;
@@ -234,7 +234,7 @@ ThreadManager.prototype.removeTerminatedProcesses = function () {
// and un-highlight their scripts
var remaining = [];
this.processes.forEach(function (proc) {
- if (!proc.isRunning() && !proc.errorFlag && !proc.isDead) {
+ if ((!proc.isRunning() && !proc.errorFlag) || proc.isDead) {
if (proc.topBlock instanceof BlockMorph) {
proc.topBlock.removeHighlight();
}
@@ -2589,6 +2589,7 @@ Process.prototype.reportContextFor = function (context, otherObj) {
if (result.outerContext) {
result.outerContext = copy(result.outerContext);
result.outerContext.receiver = otherObj;
+ result.outerContext.variables.parentFrame = otherObj.variables;
}
return result;
};