Converts an arbitrary value into an AttrValue. null, undefined, functions and symbols
become undefined (the caller omits the key); dates become ISO strings; bigints become strings;
errors become { name, message }; cycles and very deep values become "[Circular]"/"[Truncated]".
Converts an arbitrary value into an AttrValue.
null,undefined, functions and symbols becomeundefined(the caller omits the key); dates become ISO strings; bigints become strings; errors become{ name, message }; cycles and very deep values become"[Circular]"/"[Truncated]".