Reverts the source-loading workaround. Bytecode modules go through the VM which handles IO suspension (perform/wait/fetch) correctly. The endModuleLoad sync copies VM globals to CEK env, so eval-expr-cek in hs-handler can find hs-on/hs-toggle-class!/etc. All three HS examples fully working on live site: Toggle Color — toggle classes on click Bounce — add class, wait 1s (IO suspend+resume), remove class Count Clicks — increment counter, update innerHTML Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
27 KiB
27 KiB