HS: generator hand-rolls + transition possessive target (+4 tests)
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 50s

Parser: add 'the ...' as a recognized transition target in parse-transition-cmd's
tgt cond, enabling 'transition the next <div/>'s *width from A to B'.

Generator MANUAL_TEST_BODIES for 4 previously-SKIP tests:
- can transition on query ref with possessive (transition suite, 17/17)
- can write to next element with put command (relativePositionalExpression, 23/23)
- parse error at EOF on trailing newline does not crash (core/parser, 13/14)
- halt works outside of event context (halt suite, 7/7)

Also fix hs-kernel-eval.js navigator assignment for Node.js v22 (read-only global).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-05 22:13:30 +00:00
parent 2de96e7f4f
commit 2f8abb18a3
5 changed files with 185 additions and 186 deletions

View File

@@ -127,7 +127,7 @@ globalThis.document = {
globalThis.CustomEvent = Ev;
globalThis.Event = Ev;
globalThis.window = globalThis;
globalThis.navigator = { userAgent: 'node' };
try { globalThis.navigator = { userAgent: 'node' }; } catch(e) { Object.defineProperty(globalThis, 'navigator', { value: { userAgent: 'node' }, writable: true, configurable: true }); }
globalThis.location = { href:'http://localhost/', pathname:'/', search:'', hash:'' };
globalThis.history = { pushState(){}, replaceState(){} };
globalThis.getSelection = () => ({ toString: () => '' });