Commit 61e9396
crypto: add checkIsArrayBufferView
This commit adds a checkIsArrayBufferView function to avoid some code
duplication in sig.js
PR-URL: #20251
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>1 parent e81bb9f commit 61e9396Copy full SHA for 61e9396
Expand file treeCollapse file tree
2 files changed
+18
-33
lines changedOpen diff view settings
Collapse file
+6-33Lines changed: 6 additions & 33 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
14 | 14 | |
15 | 15 | |
16 | 16 | |
| 17 | + |
17 | 18 | |
18 | 19 | |
19 | 20 | |
20 | | - |
21 | 21 | |
22 | 22 | |
23 | 23 | |
| ||
41 | 41 | |
42 | 42 | |
43 | 43 | |
44 | | - |
45 | | - |
46 | | - |
47 | | - |
48 | | - |
49 | | - |
50 | | - |
51 | | - |
| 44 | + |
52 | 45 | |
53 | 46 | |
54 | 47 | |
| ||
84 | 77 | |
85 | 78 | |
86 | 79 | |
87 | | - |
88 | | - |
89 | | - |
90 | | - |
91 | | - |
92 | | - |
93 | | - |
94 | | - |
| 80 | + |
95 | 81 | |
96 | 82 | |
97 | 83 | |
| ||
128 | 114 | |
129 | 115 | |
130 | 116 | |
131 | | - |
132 | | - |
133 | | - |
134 | | - |
135 | | - |
136 | | - |
137 | | - |
138 | | - |
| 117 | + |
139 | 118 | |
140 | | - |
141 | | - |
142 | | - |
143 | | - |
144 | | - |
145 | | - |
146 | | - |
147 | | - |
| 119 | + |
| 120 | + |
148 | 121 | |
149 | 122 | |
150 | 123 | |
|
Collapse file
lib/internal/crypto/util.js
Copy file name to clipboardExpand all lines: lib/internal/crypto/util.js+12Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
83 | 83 | |
84 | 84 | |
85 | 85 | |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | + |
86 | 97 | |
| 98 | + |
87 | 99 | |
88 | 100 | |
89 | 101 | |
|
0 commit comments