From 7acbea01ae1a9e48ccd22afcd62cfa820e48bc59 Mon Sep 17 00:00:00 2001 From: giles Date: Tue, 5 May 2026 18:49:04 +0000 Subject: [PATCH] =?UTF-8?q?HS:=20clear=20=5Fhs=5Fnull=5Ferror=20at=20test?= =?UTF-8?q?=20boundary=20=E2=80=94=20fix=20bootstrap/can=20wait=20(+1=20te?= =?UTF-8?q?st)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit hs-win-call sets window._hs_null_error as a side channel when a global function lookup fails. _driveAsync checks this flag and bails early to avoid error cascades, but the flag was never cleared between tests. A previous test (call/can call functions w/ underscores) triggers hs-win-call when global_function is not set up, which leaves _hs_null_error="'global_function' is null". The bootstrap/can wait test then calls `wait 20ms` whose io-sleep resume is skipped by _driveAsync, so .bar is never added and the assertion fails. Fix: clear _hs_null_error in the per-test reset block in the test runner. Co-Authored-By: Claude Sonnet 4.6 --- tests/hs-run-filtered.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/hs-run-filtered.js b/tests/hs-run-filtered.js index 181ff2c2..da0aa061 100755 --- a/tests/hs-run-filtered.js +++ b/tests/hs-run-filtered.js @@ -809,6 +809,7 @@ for(let i=startTest;i