SIGN IN SIGN UP

crypto: avoid throwing CryptoKey brand checks

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

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
7aaf9b44d71ba2f8642daa440cd358a915730b45
Parent: ebd88be
Committed by Node.js GitHub Bot <github-bot@iojs.org> on 8/25/2026, 5:19:35 PM