{{ message }}
Repository navigation
Commit 0c090a2
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: #65503
Reviewed-By: Aviv Keller <me@aviv.sh>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>1 parent a13cc3f commit 0c090a2
4 files changed
Lines changed: 17 additions & 12 deletions
File tree
- lib/internal/crypto
- src/crypto
- typings/internalBinding
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1875 | 1875 | | |
1876 | 1876 | | |
1877 | 1877 | | |
| 1878 | + | |
| 1879 | + | |
1878 | 1880 | | |
1879 | 1881 | | |
1880 | 1882 | | |
1881 | 1883 | | |
1882 | 1884 | | |
1883 | 1885 | | |
| 1886 | + | |
1884 | 1887 | | |
1885 | 1888 | | |
1886 | 1889 | | |
| |||
1897 | 1900 | | |
1898 | 1901 | | |
1899 | 1902 | | |
| 1903 | + | |
| 1904 | + | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
| 1908 | + | |
1900 | 1909 | | |
1901 | 1910 | | |
1902 | 1911 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| 281 | + | |
281 | 282 | | |
282 | 283 | | |
283 | 284 | | |
| |||

0 commit comments