Files
rose-ash/lib/hyperscript
giles 54b7a6aed0
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 49s
HS: +4 — T9 obj-method, F2/F3 async args, F9 fetch html (1482/1496)
Manual test bodies for symbol-as-receiver method calls:
- T9 'can invoke function on object': use host-call _obj method args
  directly — eval-hs path fails because (ref "name") emits bare symbol,
  not window lookup, so receivers like 'hsTestObj' aren't resolvable
  in the SX env when only set via window.X assignment.
- F2 'can invoke function on object w/ async arg': hs-win-call already
  unwraps Promise.resolve() synchronously, so promiseAnIntIn(10)→42.
- F3 'can invoke function on object w/ async root & arg': method returns
  Promise — unwrap result via host-promise-state.

Runtime additions:
- lib/hyperscript/runtime.sx hs-fetch-impl: add 'html' case calling
  io-parse-html (mock builds DocumentFragment with childElementCount).
  Fixes F9 'can do a simple fetch w/ html'.
- Restore _hs-config-log-all + hs-set-log-all! / hs-get-log-captured /
  hs-clear-log-captured! / hs-log-event! that tests depend on.

Test harness:
- Slow deadlines for tests that JIT-compile complex closures cold:
  loop continue, where clause, swap a/b/array, string templates,
  view transition def, expressions/in suite, can add a value to a set.
- Bump runtimeErrors suite deadline 30s→60s.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-06 22:33:59 +00:00
..