Commit 9220a68
crypto: fix KeyObject handle type error message
Fix KeyObject handle type error message. Add test to cover KeyObject
ERR_INVALID_ARG_TYPE exception.
PR-URL: #27904
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>1 parent 33236b7 commit 9220a68Copy full SHA for 9220a68
File tree
Expand file treeCollapse file tree
2 files changed
+23
-1
lines changedOpen diff view settings
Filter options
- lib/internal/crypto
- test/parallel
Expand file treeCollapse file tree
2 files changed
+23
-1
lines changedOpen diff view settings
Collapse file
lib/internal/crypto/keys.js
Copy file name to clipboardExpand all lines: lib/internal/crypto/keys.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
44 | 44 | |
45 | 45 | |
46 | 46 | |
47 | | - |
| 47 | + |
48 | 48 | |
49 | 49 | |
50 | 50 | |
|
Collapse file
test/parallel/test-crypto-key-objects.js
Copy file name to clipboardExpand all lines: test/parallel/test-crypto-key-objects.js+22Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
13 | 13 | |
14 | 14 | |
15 | 15 | |
| 16 | + |
16 | 17 | |
17 | 18 | |
18 | 19 | |
| ||
39 | 40 | |
40 | 41 | |
41 | 42 | |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
42 | 64 | |
43 | 65 | |
44 | 66 | |
|
0 commit comments