code wiki / (root) / nx_js_conformance.nx

nx_js_conformance.nx

buildroot/runtime/nx_js_conformance.nx

17198 B233 linesdepth 7pulls 22 transitivereach 0 importersview sourcekind tooltopic js
docsdependenciesstructsconstsfunctions

about

nx_js_conformance.nx -- WB-JS-001 conformance HARNESS (test262-lite, no-wave MEASUREMENT, not a pass/fail gate). Composes the sovereign engine READ-ONLY (imports nx_js_eval -> js_run_source) and runs a categorized battery of real JS programs, asserting evaluated VALUES + expected ERRORS. Prints a per-category capability map + an overall conformance permil -- the honest measure of what the engine does today and what's still gapped (drives the next eval rungs). This is a SEPARATE organ (does NOT edit nx_js_eval) so it can ride the engine while the evaluator is authored independently. Each case is a real spec behavior; FAILs are NAMED, never hidden -- the score is the truth, not a wave. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_js_eval.nx nx_itoa_lib.nx nx_js_conformance.nx

imports: nx_js_eval.nxnx_itoa_lib.nx

imported by: nobody (leaf or entry point)

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

main jc_puts jc_case jc_puts ↻ jc_num jc_slen jc_bool jc_slen ↻ jc_str jc_slen ↻ ev_str_len ev_str_bytes str_flatten ev_str_new nx_pool_alloc gc_init gc_retire_chunk gc_setbit nx_pool_alloc ↻ jc_err jc_slen ↻ jc_putn nxi_out nxi_fd sys_mmap ccz_cat_num sys_write sys_munmap sys_openat_append

structs

none

consts

none

functions

14func jc_puts(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: jc_casemain
19func jc_putn(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
20func jc_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
23func jc_num(s: *u8, want: i64) -> i64
called by 1: main calls 1: jc_slen
30func jc_bool(s: *u8, want: i64) -> i64
called by 1: main calls 1: jc_slen
37func jc_str(s: *u8, want: *u8) -> i64
called by 1: main calls 3: jc_slenev_str_lenev_str_bytes
49func jc_err(s: *u8) -> i64
called by 1: main calls 1: jc_slen
56func jc_case(ok: i64, label: *u8) -> i64
called by 1: main calls 1: jc_puts
62func main() -> i64