Produces the id of a node. Called once per discovered node.
Most child reports in one report. Defaults to 100.
Deepest level of nested errors to report; 1 reports caught.cause but not caught.cause.cause. Defaults to 5.
Size limit of the compact JSON of the whole report, children included. Defaults to 100000; null disables it.
Which of v and $schema to add to the root. Defaults to v only.
Leave out fields holding their expected value, see CORJ_EXPECTED_VALUES. Defaults to true.
Called when something throws while the report is produced. Defaults to console.warn.
Unit of maxReportSize. Defaults to UTF-8 bytes; utf16-code-units counts json.length.
Store stack as stack.split('\n') (lines, the default) or as the raw string.
Properties to collect children from. Arrays contribute one child per element. Defaults to
["cause", "errors"].