Type Alias: OwnDataPropertyResult
type OwnDataPropertyResult =
| {
found: false;
}
| {
found: true;
value: unknown;
};
Defined in: shared/utils/errorPropertyAccess.ts:11
Descriptor-safe property access helpers for error and diagnostic paths.
Remarksโ
Logging, preview, and validation code often handles untrusted error-shaped values. These helpers avoid invoking user-defined getters while still preserving native Error stack access where runtimes expose it through a built-in accessor.