From 15a751ad85b424703502e881ed8aaabdffe18e3e Mon Sep 17 00:00:00 2001 From: jmoenig Date: Mon, 21 Jul 2014 08:23:14 +0200 Subject: fixed #518 --- threads.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'threads.js') diff --git a/threads.js b/threads.js index 469fb7f..9251b95 100644 --- a/threads.js +++ b/threads.js @@ -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 = []; -- cgit v1.3.1