diff options
| author | jmoenig <jens@moenig.org> | 2014-10-01 09:50:56 +0200 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2014-10-01 09:50:56 +0200 |
| commit | c6815c11d414fbdaf3f3f4555ea542378378f337 (patch) | |
| tree | 806db9f03ca9bf3a5eef660d2f95bb089c058b1a /threads.js | |
| parent | ebbd0be87ac9d8b2ac80857089350cfdd11f27b4 (diff) | |
| download | snap-yow-c6815c11d414fbdaf3f3f4555ea542378378f337.tar.gz snap-yow-c6815c11d414fbdaf3f3f4555ea542378378f337.zip | |
workaround for some REPORT / STOP BLOCK issues
enables reporting and stopping a bock from within a C-shaped slot in a
custom block, but not (yet) out of nested C-shaped custom blocks (but
that’s coming up, too)
Diffstat (limited to 'threads.js')
| -rw-r--r-- | threads.js | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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(); } } |
