code wiki / _hdl_build / nx_scope_test.nx

nx_scope_test.nx

buildroot/runtime/_hdl_build/nx_scope_test.nx

1704 B24 linesdepth 7pulls 22 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_scope_test.nx -- does a closure assigning to an OUTER `var` update it (Sizzle setDocument sets a module `document` var from inside a function)? And the exact Sizzle shape: var document; setDocument()->document=x.

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_js_eval.nx nx_scope_test.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 run1 js_set_rt_dbg sys_mmap slen cw sys_write slen ↻ js_pending_total js_pending_url ev_str_bytes str_flatten ev_str_new nx_pool_alloc nx_pool_alloc ↻ ev_str_len

structs

none

consts

none

functions

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