SIGN IN SIGN UP

crypto: avoid throwing KeyObject brand checks

Use the native KeyObject FunctionTemplate brand check instead of
probing slot access and catching ERR_INVALID_THIS. Keep a private-field
fast path for ordinary same-realm KeyObjects.

Signed-off-by: Filip Skokan <panva.ip@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/65503
Reviewed-By: Aviv Keller <me@aviv.sh>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
F
Filip Skokan committed
ebd88be3dda625ba1318ff71bb6475ad3fa8c475
Parent: ce40aa2
Committed by Node.js GitHub Bot <github-bot@iojs.org> on 8/25/2026, 5:19:34 PM