Variable CORJ_EXPECTED_VALUESConst

CORJ_EXPECTED_VALUES: Readonly<{
    as_json: Readonly<{}>;
    as_json_format: "safe-stable-stringify-with-length-limit";
    as_string_format: "String";
    children_sources: readonly string[];
    instanceof_error: true;
    typeof: "object";
}> = ...

Values that a report field is expected to hold most of the time.

When omitExpectedValues is enabled (the default), a field holding its expected value is left out of the report, and a reader must treat a missing field as holding the expected value.

as_string has no fixed expected value: it is omitted when it equals the first line of stack, which is what Error.prototype.toString produces. constructor_name and message are omitted together with as_string when that line is exactly ${constructor_name}: ${message} (or constructor_name alone for an empty message), see parseStackHeader.

Type declaration

  • Readonly as_json: Readonly<{}>
  • Readonly as_json_format: "safe-stable-stringify-with-length-limit"
  • Readonly as_string_format: "String"
  • Readonly children_sources: readonly string[]
  • Readonly instanceof_error: true
  • Readonly typeof: "object"