nx_yt_basejs.nx
buildroot/runtime/nx_yt_basejs.nx
about
nx_yt_basejs.nx -- NATIVE (no JS engine) name-finder for YouTube's base.js n-throttle function. This is the
fragile arms-race parse yt-dlp needs, done in NishiLang: locate the n-function's NAME from the player code so
nx_yt_nsolve can then RUN it (that run is the last-mile JS; THIS locate is native text analysis). Real shape,
minified: `...a.get("n"))&&(b=Wma[0](b)...` where the function is referenced through an ARRAY (`Wma[0]`) whose
element list is defined elsewhere (`var Wma=[Xdec,Yfoo]`), OR referenced directly (`&&(c=lha(c)`). Layered so
a shape change that breaks one pattern still resolves via another -- and a total miss is a LEARN signal for
the self-heal table (name-location is itself a learnable pattern). license_tier: ORIGINAL
dependencies 2 imports · 2 importers
imports: nx_syscalls.nxnx_media_signal.nx
imported by: nx_video_sniff.nxnx_yt_basejs_gate.nx
structs
| none |
consts
| none |
functions
| 12 | func bjs_identc(c: i64) -> i64 |
| 21 | func bjs_read_ident(js: *u8, jl: i64, from: i64, out: *u8, cap: i64) -> i64 |
| 35 | func bjs_resolve_array_elem(js: *u8, jl: i64, arrname: *u8, arrnamelen: i64, idx: i64, out: *u8, cap: i64) -> i64 |
| 68 | func bjs_find_nfunc_name(js: *u8, jl: i64, out: *u8, cap: i64) -> i64 |