diff options
| author | jmoenig <jens@moenig.org> | 2014-07-21 08:23:14 +0200 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2014-07-21 08:23:14 +0200 |
| commit | 15a751ad85b424703502e881ed8aaabdffe18e3e (patch) | |
| tree | 15784ae6a4ea1dacffaa6c2173b8eeae20ad507d /threads.js | |
| parent | e65422141ee90e6232a4cd7ff7511b67758d55d3 (diff) | |
| download | snap-15a751ad85b424703502e881ed8aaabdffe18e3e.tar.gz snap-15a751ad85b424703502e881ed8aaabdffe18e3e.zip | |
fixed #518
Diffstat (limited to 'threads.js')
| -rw-r--r-- | threads.js | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -83,7 +83,7 @@ ArgLabelMorph, localize, XML_Element, hex_sha512*/ // Global stuff //////////////////////////////////////////////////////// -modules.threads = '2014-July-18'; +modules.threads = '2014-July-21'; var ThreadManager; var Process; @@ -2871,7 +2871,8 @@ Context.prototype.continuation = function () { Context.prototype.copyForContinuation = function () { var cpy = copy(this), cur = cpy, - isReporter = !(this.expression instanceof Array); + isReporter = !(this.expression instanceof Array || + isString(this.expression)); if (isReporter) { cur.prepareContinuationForBinding(); while (cur.parentContext) { @@ -2886,7 +2887,8 @@ Context.prototype.copyForContinuation = function () { Context.prototype.copyForContinuationCall = function () { var cpy = copy(this), cur = cpy, - isReporter = !(this.expression instanceof Array); + isReporter = !(this.expression instanceof Array || + isString(this.expression)); if (isReporter) { this.expression = this.expression.fullCopy(); this.inputs = []; |
