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)

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 }
8func cw(s: *u8) -> i64 { sys_write(1,s,slen(s)); return 0 }
9func main() -> i64