From 9afe325dc280834124e628c770126ded33979b1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20M=C3=B6nig?= Date: Sun, 31 Jul 2022 21:21:20 +0200 Subject: [PATCH] fix #3088 (this time for real?) --- src/threads.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/threads.js b/src/threads.js index 5bd480d4..0a0ac007 100644 --- a/src/threads.js +++ b/src/threads.js @@ -1679,7 +1679,8 @@ Process.prototype.evaluateCustomBlock = function () { this.context.parentContext = runnable; // capture the runtime environment in "this script" - self = copy(runnable); + self = copy(context); + self.outerContext = outer; // passing parameters if any were passed if (parms.length > 0) {