{{ message }}
Repository navigation
Commit 15e7884
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 3302bec commit 15e7884
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 | |
|---|---|---|---|
| |||
1848 | 1848 | | |
1849 | 1849 | | |
1850 | 1850 | | |
| 1851 | + | |
| 1852 | + | |
1851 | 1853 | | |
1852 | 1854 | | |
1853 | 1855 | | |
1854 | 1856 | | |
1855 | 1857 | | |
1856 | 1858 | | |
| 1859 | + | |
1857 | 1860 | | |
1858 | 1861 | | |
1859 | 1862 | | |
| |||
1870 | 1873 | | |
1871 | 1874 | | |
1872 | 1875 | | |
| 1876 | + | |
| 1877 | + | |
| 1878 | + | |
| 1879 | + | |
| 1880 | + | |
| 1881 | + | |
1873 | 1882 | | |
1874 | 1883 | | |
1875 | 1884 | | |
| |||
| 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