Commit d69d06b
errors: add useOriginalName to internal/errors
This allows us to tell the type of the errors without using
instanceof, which is necessary in WPT harness.
PR-URL: #22556
Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Refael Ackermann <refack@gmail.com>1 parent f0679d9 commit d69d06bCopy full SHA for d69d06b
File tree
Expand file treeCollapse file tree
2 files changed
+46
-1
lines changedOpen diff view settings
Filter options
- lib/internal
- test/parallel
Expand file treeCollapse file tree
2 files changed
+46
-1
lines changedOpen diff view settings
Collapse file
+11-1Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
151 | 151 | |
152 | 152 | |
153 | 153 | |
| 154 | + |
| 155 | + |
154 | 156 | |
155 | 157 | |
156 | 158 | |
157 | 159 | |
158 | 160 | |
159 | 161 | |
160 | 162 | |
| 163 | + |
| 164 | + |
| 165 | + |
161 | 166 | |
162 | 167 | |
163 | 168 | |
| ||
439 | 444 | |
440 | 445 | |
441 | 446 | |
442 | | - |
| 447 | + |
| 448 | + |
| 449 | + |
| 450 | + |
| 451 | + |
| 452 | + |
443 | 453 | |
444 | 454 | |
445 | 455 | |
|
Collapse file
test/parallel/test-internal-error-original-names.js
Copy file name to clipboard+35Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
0 commit comments