nx_js_conformance.nx
buildroot/runtime/nx_js_conformance.nx
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
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
structs
| none |
consts
| none |
functions
| 14 | func 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 } |
| 19 | func jc_putn(v: i64) -> i64 { nxi_out(v); return 0 } |
| 20 | func jc_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } |
| 23 | func jc_num(s: *u8, want: i64) -> i64 |
| 30 | func jc_bool(s: *u8, want: i64) -> i64 |
| 37 | func jc_str(s: *u8, want: *u8) -> i64 |
| 49 | func jc_err(s: *u8) -> i64 |
| 56 | func jc_case(ok: i64, label: *u8) -> i64 |
| 62 | func main() -> i64 |