From 6afe1f3908932f2682454f0e044a4c1e3e750627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20M=C3=B6nig?= Date: Tue, 21 Jun 2022 10:25:45 +0200 Subject: [PATCH] fixed #3061 --- HISTORY.md | 3 +++ snap.html | 2 +- src/threads.js | 5 +++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 1cb4914d..b1a0afb8 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -51,6 +51,9 @@ * **Translation Updates:** * German +### 2022-06-21 +* threads: fixed #3061 + ### 2022-06-02 * threads: when querying a custom reporter's "definition" property only report its reporter without the REPORT block (if applicable) diff --git a/snap.html b/snap.html index 7e314435..99e62f18 100755 --- a/snap.html +++ b/snap.html @@ -17,7 +17,7 @@ - + diff --git a/src/threads.js b/src/threads.js index 1eaee6e6..4ad1cfae 100644 --- a/src/threads.js +++ b/src/threads.js @@ -65,7 +65,7 @@ StagePickerMorph, CustomBlockDefinition*/ /*jshint esversion: 11, bitwise: false, evil: true*/ -modules.threads = '2022-June-02'; +modules.threads = '2022-June-21'; var ThreadManager; var Process; @@ -5614,7 +5614,8 @@ Process.prototype.reportBasicBlockAttribute = function (attribute, block) { } else { body = new Context(); } - if (body.expression && body.expression.selector === 'doReport') { + if (body.expression && body.expression.selector === 'doReport' && + body.expression.inputs()[0] instanceof BlockMorph) { return body.expression.inputs()[0].reify(body.inputs); } return body;