code wiki / _hdl_build / nx_wdoc_test.nx

nx_wdoc_test.nx

buildroot/runtime/_hdl_build/nx_wdoc_test.nx

1582 B29 linesdepth 22pulls 174 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_wdoc_test.nx -- does `window.document` resolve in headless mode with the surrogate preamble? jQuery does `var document=window.document` -> if window.document is undefined, EVERY later document.* throws (Sizzle #14).

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_video_sniff.nx nx_video_sniff_fetch.nx nx_surrogate.nx nx_wdoc_test.nx

imports: nx_syscalls.nxnx_video_sniff.nxnx_video_sniff_fetch.nxnx_surrogate.nx

imported by: nobody (leaf or entry point)

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

main sg_new sys_mmap sg_seed sg_addc sg_add sg_slen sys_mmap ↻ sg_build_preamble sg_puts js_set_rt_dbg cw sys_write slen js_pending_total js_pending_url ev_str_bytes str_flatten ev_str_new nx_pool_alloc gc_init gc_retire_chunk gc_setbit nx_pool_alloc ↻ ev_str_len

structs

none

consts

none

functions

7func slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: cw
8func cw(s: *u8) -> i64 { sys_write(1,s,slen(s)); return 0 }
called by 1: main calls 2: sys_writeslen
9func main() -> i64