code wiki / _hdl_build / nx_js_unicode_probe.nx

nx_js_unicode_probe.nx

buildroot/runtime/_hdl_build/nx_js_unicode_probe.nx

2733 B48 linesdepth 7pulls 22 transitivereach 0 importersview sourcekind probetopic js
docsdependenciesstructsconstsfunctions

about

nx_js_unicode_probe.nx -- ISOLATE the construct that blocks real bundles (2026-07-27). netflix's 3.9MB bundle fails to parse at a lodash deburr map: {À:"A",Á:"A",...} -- object keys that are NON-ASCII (UTF-8 multibyte) IDENTIFIERS, legal JS and near-universal in bundled apps. This probe pins whether that is really the blocker, ASCII control first. Each row prints its own verdict; exit 0 iff the ASCII controls pass (so a RED row is a NAMED gap, not a broken probe).

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_js_eval.nx nx_js_unicode_probe.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 up_try sys_mmap up_len up_p sys_write up_p ↻

structs

none

consts

none

functions

10func up_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: up_trymain calls 1: sys_write
11func up_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: up_try
14func up_try(label: *u8, src: *u8) -> i64
called by 1: main calls 3: sys_mmapup_lenup_p
23func main() -> i64
calls 2: up_tryup_p