summaryrefslogtreecommitdiff
path: root/threads.js
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2015-01-02 10:27:39 +0100
committerGubolin <gubolin@fantasymail.de>2015-01-02 10:27:39 +0100
commit32e5a9b77a3db25a2562bfab10df3feb94cebb63 (patch)
treefc47b01079864c68dbf635717519f5516fd76264 /threads.js
parent524659048602c2812ef431813615a7a03ac90892 (diff)
parentb31df39d7f126eaa303c8dae1cf6a14c739a2cc5 (diff)
downloadsnap-32e5a9b77a3db25a2562bfab10df3feb94cebb63.tar.gz
snap-32e5a9b77a3db25a2562bfab10df3feb94cebb63.zip
merge upstream
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 c293af6..1665d0b 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;
@@ -243,7 +243,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();
}
@@ -2615,6 +2615,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;
};