code wiki / _hdl_build / nx_js_headless_render_gate.nx

nx_js_headless_render_gate.nx

buildroot/runtime/_hdl_build/nx_js_headless_render_gate.nx

5092 B75 linesdepth 7pulls 22 transitivereach 0 importersview sourcekind gate/prooftopic js
docsdependenciesstructsconstsfunctions

about

nx_js_headless_render_gate.nx -- proves rung 5 (headless hydration): the ASYNC rungs (event loop / promise / fetch) INTEGRATE with the DOM-render pipeline (js_render_page). A page whose inline script mutates the DOM from a setTimeout / Promise.then / fetch(data:).then callback -> the mutation appears in the SERIALIZED output (the drain runs the async work before serialize). This is the SPA-hydration path. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_js_eval.nx nx_js_headless_render_gate.nx

imports: nx_syscalls.nxnx_js_eval.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main r_p sys_write sys_mmap r_clen chk r_p ↻ r_contains r_clen ↻

structs

none

consts

none

functions

9func r_p(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 2: chkmain calls 1: sys_write
10func r_clen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 2: r_containsmain
11func r_contains(buf: *u8, blen: i64, needle: *u8) -> i64
called by 1: main calls 1: r_clen
23func chk(cond: i64, name: *u8, pp: *i64, tp: *i64) -> i64
called by 1: main calls 1: r_p
29func main() -> i64