Recursive AI
oneecmaDocs

oneecma docs

Everything about OneEcma: getting started, host bindings, the error reports and their JSON form, source maps, record and replay, limits, how each built-in behaves, and how it is checked.

Reports

JSON reportThe JSON form of a report. It carries everything the text report shows, as data, so a host, an editor or an agent tool can read it without parsing text. The schema is docs/diagnostic-report.schema.json (JSON Schema 2020-12, $id urn:oneecma:diagnostic-report:1). The writer is…Stack traceserr.stack follows V8's format and the engine matches Node's output on the differential corpus (testdata/errors/cases.txt, 213 snippets; expected.json is what Node v24.22.1 printed, recorded by tools/errors-diff/record.js). The report's = stack: line and the JSON stack array…How help lines are chosenThe = help: line of a runtime report names the fix. It reads live values from a traced replay and never runs script.Syntax error wordingThe headline of every syntax error and early error is word for word what V8 puts in err.message, so scripts and error-reporting libraries that match on it keep working. The parser never invents a headline: explanations go in the label, help and note lines of the report.Auto-repair tableChanges since v1: R012 added (rank 7; every later rank moves down one), R001 also removes a run of adjacent unmatched closers, R007 also erases the annotation of a const/let/var declaration whose first error is the missing initializer, and the machine-readable file is…Source mapsReports about minified, bundled or transpiled code point at the source the author wrote. The consumer follows ECMA-426 (https://tc39.es/ecma426/); this page lists what it does where the specification leaves room, and how reports use it. Types live in…Record log and replayA record log holds everything a run took from outside the engine, in order, so the run can be replayed in a fresh engine and give the same values, exceptions and report bytes. Recording is on by default (ScriptEngine.RecordLog, or pass your own through…