What
Reading and augmenting error metadata for telemetry no longer risks throwing from a malformed thrown value.
Details
telemetryMessageis read through a guarded helper that type-checks the property and swallows any throw.- A companion helper copies missing fields onto an error only when it is a non-null extensible object, also wrapped in try/catch.
- Fields already present on the error are never overwritten.
Evidence
telemetryMessage
Strings lifted out of the shipped bundle, so the claim above can be checked against them.