From 318ffdbdf01e9c6ad78ab41852803d955e9dc092 Mon Sep 17 00:00:00 2001 From: Garry Tan Date: Mon, 16 Mar 2026 21:50:43 -0500 Subject: [PATCH] fix: js statement wrapping + click auto-routes option to selectOption (v0.4.5) (#117) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: js statement wrapping + click auto-routes option to selectOption Bug 1: js command wrapped all code as expressions — const, semicolons, and multi-line code broke with SyntaxError. Added needsBlockWrapper() and wrapForEvaluate() helpers (shared with eval) to detect statements and use block wrapper {…} instead of expression wrapper (…). Bug 2: clicking