summaryrefslogtreecommitdiff
path: root/threads.js
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2014-07-21 08:23:14 +0200
committerjmoenig <jens@moenig.org>2014-07-21 08:23:14 +0200
commit15a751ad85b424703502e881ed8aaabdffe18e3e (patch)
tree15784ae6a4ea1dacffaa6c2173b8eeae20ad507d /threads.js
parente65422141ee90e6232a4cd7ff7511b67758d55d3 (diff)
downloadsnap-byow-15a751ad85b424703502e881ed8aaabdffe18e3e.tar.gz
snap-byow-15a751ad85b424703502e881ed8aaabdffe18e3e.zip
fixed #518
Diffstat (limited to 'threads.js')
-rw-r--r--threads.js8
1 files changed, 5 insertions, 3 deletions
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 = [];