Comparison key for an opinion value: the same canonical form as
@ifc-lite/ifcx uses for opinions (NFC strings, -0 as 0, sorted keys,
object members holding undefined skipped). A top-level undefined
(an attribute kept without a value) is distinct from a null removal,
and values JSON cannot represent (non-finite numbers, bigint, functions,
symbols) get tagged keys, so NaN never equals a removal.
A Date compares by time. A value nested past MAX_KEY_DEPTH (or
cyclic), or holding a non-plain object such as a Map or Set, compares
by identity, so nothing throws.
Comparison key for an opinion value: the same canonical form as
@ifc-lite/ifcxuses for opinions (NFC strings, -0 as 0, sorted keys, object members holdingundefinedskipped). A top-levelundefined(an attribute kept without a value) is distinct from anullremoval, and values JSON cannot represent (non-finite numbers, bigint, functions, symbols) get tagged keys, soNaNnever equals a removal. ADatecompares by time. A value nested pastMAX_KEY_DEPTH(or cyclic), or holding a non-plain object such as a Map or Set, compares by identity, so nothing throws.