From f5f096d97ff7bd5ceead0c4e6d59704a38877b44 Mon Sep 17 00:00:00 2001 From: Pavel Baksy Date: Wed, 13 May 2026 00:46:46 +0200 Subject: [PATCH] Fix console.error() not defined in script execution context --- src/script_executor.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/script_executor.py b/src/script_executor.py index 8f69e83..115dea5 100644 --- a/src/script_executor.py +++ b/src/script_executor.py @@ -102,6 +102,9 @@ let consoleOutput = []; const console = {{ log: function(...args) {{ consoleOutput.push(args.map(arg => String(arg)).join(' ')); + }}, + error: function(...args) {{ + consoleOutput.push(args.map(arg => String(arg)).join(' ')); }} }}; @@ -225,6 +228,9 @@ let consoleOutput = []; const console = {{ log: function(...args) {{ consoleOutput.push(args.map(arg => String(arg)).join(' ')); + }}, + error: function(...args) {{ + consoleOutput.push(args.map(arg => String(arg)).join(' ')); }} }};