Commit f488b2f
crypto: use async functions for non-stub Promise-returning functions
These were intended to mimic simple async functions, but exceptions
thrown in the function body would be returned synchronously, not
wrapped in a rejected Promise.
PR-URL: #59841
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jordan Harband <ljharb@gmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>1 parent aed9fd5 commit f488b2fCopy full SHA for f488b2f
File tree
Expand file treeCollapse file tree
5 files changed
+8
-9
lines changedOpen diff view settings
Filter options
- lib/internal/crypto
Expand file treeCollapse file tree
5 files changed
+8
-9
lines changedOpen diff view settings
Collapse file
+3-4Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
5 | 5 | |
6 | 6 | |
7 | 7 | |
8 | | - |
9 | 8 | |
10 | 9 | |
11 | 10 | |
| ||
132 | 131 | |
133 | 132 | |
134 | 133 | |
135 | | - |
| 134 | + |
136 | 135 | |
137 | 136 | |
138 | 137 | |
| ||
148 | 147 | |
149 | 148 | |
150 | 149 | |
151 | | - |
| 150 | + |
152 | 151 | |
153 | | - |
| 152 | + |
154 | 153 | |
155 | 154 | |
156 | 155 | |
|
Collapse file
lib/internal/crypto/cfrg.js
Copy file name to clipboardExpand all lines: lib/internal/crypto/cfrg.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
342 | 342 | |
343 | 343 | |
344 | 344 | |
345 | | - |
| 345 | + |
346 | 346 | |
347 | 347 | |
348 | 348 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
283 | 283 | |
284 | 284 | |
285 | 285 | |
286 | | - |
| 286 | + |
287 | 287 | |
288 | 288 | |
289 | 289 | |
|
Collapse file
+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
91 | 91 | |
92 | 92 | |
93 | 93 | |
94 | | - |
| 94 | + |
95 | 95 | |
96 | 96 | |
97 | 97 | |
| ||
328 | 328 | |
329 | 329 | |
330 | 330 | |
331 | | - |
| 331 | + |
332 | 332 | |
333 | 333 | |
334 | 334 | |
|
Collapse file
lib/internal/crypto/webcrypto.js
Copy file name to clipboardExpand all lines: lib/internal/crypto/webcrypto.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
769 | 769 | |
770 | 770 | |
771 | 771 | |
772 | | - |
| 772 | + |
773 | 773 | |
774 | 774 | |
775 | 775 | |
|
0 commit comments