Commit 38bb0d8
tools: Use
In preparation for a lint rule that will enforce `throw new Error()`
over `throw Error()`, fix the handful of instances in the code that
use `throw Error()`.
PR-URL: #3714
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>throw new Error() consistently1 parent 02e012e commit 38bb0d8Copy full SHA for 38bb0d8
File tree
Expand file treeCollapse file tree
5 files changed
+6
-6
lines changedOpen diff view settings
Filter options
- test
- addons/make-callback
- parallel
- pummel
Expand file treeCollapse file tree
5 files changed
+6
-6
lines changedOpen diff view settings
Collapse file
test/addons/make-callback/test.js
Copy file name to clipboardExpand all lines: test/addons/make-callback/test.js+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
40 | 40 | |
41 | 41 | |
42 | 42 | |
43 | | - |
| 43 | + |
44 | 44 | |
45 | 45 | |
46 | 46 | |
| ||
55 | 55 | |
56 | 56 | |
57 | 57 | |
58 | | - |
| 58 | + |
59 | 59 | |
60 | 60 | |
61 | 61 | |
Collapse file
test/parallel/test-assert.js
Copy file name to clipboardExpand all lines: test/parallel/test-assert.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
465 | 465 | |
466 | 466 | |
467 | 467 | |
468 | | - |
| 468 | + |
469 | 469 | |
470 | 470 | |
Collapse file
test/parallel/test-http-mutable-headers.js
Copy file name to clipboardExpand all lines: test/parallel/test-http-mutable-headers.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
110 | 110 | |
111 | 111 | |
112 | 112 | |
113 | | - |
| 113 | + |
114 | 114 | |
115 | 115 | |
116 | 116 | |
|
Collapse file
test/pummel/test-regress-GH-814.js
Copy file name to clipboardExpand all lines: test/pummel/test-regress-GH-814.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
46 | 46 | |
47 | 47 | |
48 | 48 | |
49 | | - |
| 49 | + |
50 | 50 | |
51 | 51 | |
52 | 52 | |
|
Collapse file
test/pummel/test-regress-GH-814_2.js
Copy file name to clipboardExpand all lines: test/pummel/test-regress-GH-814_2.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
21 | 21 | |
22 | 22 | |
23 | 23 | |
24 | | - |
| 24 | + |
25 | 25 | |
26 | 26 | |
27 | 27 | |
|
0 commit comments