summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhistory.txt3
-rw-r--r--threads.js6
2 files changed, 7 insertions, 2 deletions
diff --git a/history.txt b/history.txt
index a4ba13c..fb2c065 100755
--- a/history.txt
+++ b/history.txt
@@ -2291,3 +2291,6 @@ ______
* Objects: fixed #378 (disable context menus for boolean representations)
* Blocks: fixed #584
+140930
+------
+* Threads: workaround for some REPORT issues
diff --git a/threads.js b/threads.js
index 2b2c1f6..6a59f3c 100644
--- a/threads.js
+++ b/threads.js
@@ -83,7 +83,7 @@ ArgLabelMorph, localize, XML_Element, hex_sha512*/
// Global stuff ////////////////////////////////////////////////////////
-modules.threads = '2014-September-29';
+modules.threads = '2014-October-01';
var ThreadManager;
var Process;
@@ -955,7 +955,9 @@ Process.prototype.doReport = function (value, isCSlot) {
this.context.pc = this.context.expression.length - 1;
}
if (isCSlot) {
- if (this.context.parentContext.expression instanceof Array) {
+ if (this.context &&
+ this.context.parentContext &&
+ this.context.parentContext.expression instanceof Array) {
this.popContext();
}
}