Skip to main content

Function: getOwnPropertyValue()

function getOwnPropertyValue(
holder: object,
key: PropertyKey
): OwnDataPropertyResult;

Defined in: shared/utils/errorPropertyAccess.ts:58

Reads an own data property or an own accessor property whose getter can be invoked safely.

Parametersโ€‹

holderโ€‹

object

keyโ€‹

PropertyKey

Returnsโ€‹

OwnDataPropertyResult

Remarksโ€‹

Prefer getOwnDataProperty for untrusted payloads, errors, and metadata where getters should never run. This helper is for trusted runtime boundaries such as globalThis.crypto, where modern runtimes expose native capabilities through configurable global accessors.