code wiki / _hdl_build / nx_scope_test.nx
nx_scope_test.nx
buildroot/runtime/_hdl_build/nx_scope_test.nx
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
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
structs
| none |
consts
| none |
functions
| 5 | func slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } |
| 6 | func cw(s: *u8) -> i64 { sys_write(1,s,slen(s)); return 0 } |
| 7 | func run1(label: *u8, js: *u8) -> i64 |
| 18 | func main() -> i64 calls 1: run1 |