Commit aed9fd5
crypto: avoid calls to
This avoids explicit calls to the user-mutable
`%Promise.prototype%.catch`, and by association, implicit calls to the
user-mutable `%Promise.prototype%.then`.
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>promise.catch()
1 parent 8e182e5 commit aed9fd5Copy full SHA for aed9fd5
Expand file treeCollapse file tree
5 files changed
+32
-17
lines changedOpen diff view settings
Collapse file
+5-2Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
195 | 195 | |
196 | 196 | |
197 | 197 | |
198 | | - |
| 198 | + |
| 199 | + |
| 200 | + |
| 201 | + |
199 | 202 | |
200 | 203 | |
201 | 204 | |
202 | 205 | |
203 | | - |
| 206 | + |
204 | 207 | |
205 | 208 | |
206 | 209 | |
|
Collapse file
lib/internal/crypto/cfrg.js
Copy file name to clipboardExpand all lines: lib/internal/crypto/cfrg.js+5-2Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
148 | 148 | |
149 | 149 | |
150 | 150 | |
151 | | - |
| 151 | + |
| 152 | + |
| 153 | + |
| 154 | + |
152 | 155 | |
153 | 156 | |
154 | 157 | |
155 | | - |
| 158 | + |
156 | 159 | |
157 | 160 | |
158 | 161 | |
|
Collapse file
+7-4Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
96 | 96 | |
97 | 97 | |
98 | 98 | |
99 | | - |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
100 | 103 | |
101 | 104 | |
102 | 105 | |
103 | | - |
| 106 | + |
104 | 107 | |
105 | 108 | |
106 | 109 | |
| ||
119 | 122 | |
120 | 123 | |
121 | 124 | |
122 | | - |
| 125 | + |
123 | 126 | |
124 | 127 | |
125 | 128 | |
126 | 129 | |
127 | 130 | |
128 | 131 | |
129 | | - |
| 132 | + |
130 | 133 | |
131 | 134 | |
132 | 135 | |
|
Collapse file
+5-2Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
54 | 54 | |
55 | 55 | |
56 | 56 | |
57 | | - |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
58 | 61 | |
59 | 62 | |
60 | 63 | |
61 | | - |
| 64 | + |
62 | 65 | |
63 | 66 | |
64 | 67 | |
|
Collapse file
+10-7Lines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
148 | 148 | |
149 | 149 | |
150 | 150 | |
151 | | - |
152 | | - |
153 | | - |
154 | | - |
| 151 | + |
| 152 | + |
| 153 | + |
| 154 | + |
| 155 | + |
| 156 | + |
| 157 | + |
155 | 158 | |
156 | 159 | |
157 | 160 | |
158 | | - |
| 161 | + |
159 | 162 | |
160 | 163 | |
161 | 164 | |
| ||
181 | 184 | |
182 | 185 | |
183 | 186 | |
184 | | - |
| 187 | + |
185 | 188 | |
186 | 189 | |
187 | 190 | |
188 | 191 | |
189 | 192 | |
190 | 193 | |
191 | | - |
| 194 | + |
192 | 195 | |
193 | 196 | |
194 | 197 | |
|
0 commit comments