1export class RuntimeDiagnostics { 2 #entries = []; 3 4 record(code) { 5 const safeCode = typeof code === 'string' && /^[a-z0-9_:-]{1,64}$/i.test(code) 6 ? code 7 : 'runtime_failure'; 8 this.#entries.push(Object.freeze({ code: safeCode })); 9 } 10 11 entries() { 12 return Object.freeze([...this.#entries]); 13 } 14}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.