Commit a28ddd4
module: do not wrap module._load when tracing is not enabled
This prevents clobbering the stack traces with another internal
frame and removes the unnecessary hoops from step-debugging.
PR-URL: #61479
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>1 parent da93e21 commit a28ddd4Copy full SHA for a28ddd4
15 files changed
+21-46Lines changed: 21 additions & 46 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- lib/internal/modules/cjs
- test
- fixtures
- console
- errors
- source-map/output
- message
- pseudo-tty
Expand file treeCollapse file tree
Open diff view settings
Collapse file
lib/internal/modules/cjs/loader.js
Copy file name to clipboardExpand all lines: lib/internal/modules/cjs/loader.js+11-5Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
238 | 238 | |
239 | 239 | |
240 | 240 | |
| 241 | + |
241 | 242 | |
242 | 243 | |
243 | 244 | |
244 | 245 | |
245 | | - |
246 | | - |
247 | | - |
248 | | - |
249 | | - |
| 246 | + |
| 247 | + |
| 248 | + |
| 249 | + |
| 250 | + |
| 251 | + |
| 252 | + |
| 253 | + |
| 254 | + |
| 255 | + |
250 | 256 | |
251 | 257 | |
252 | 258 | |
|
Collapse file
test/fixtures/console/console.snapshot
Copy file name to clipboardExpand all lines: test/fixtures/console/console.snapshot-1Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
7 | 7 | |
8 | 8 | |
9 | 9 | |
10 | | - |
Collapse file
test/fixtures/errors/force_colors.snapshot
Copy file name to clipboardExpand all lines: test/fixtures/errors/force_colors.snapshot-1Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
11 | 11 | |
12 | 12 | |
13 | 13 | |
14 | | - |
15 | 14 | |
16 | 15 | |
Collapse file
test/fixtures/errors/promise_unhandled_warn_with_error.snapshot
Copy file name to clipboardExpand all lines: test/fixtures/errors/promise_unhandled_warn_with_error.snapshot-1Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
7 | 7 | |
8 | 8 | |
9 | 9 | |
10 | | - |
11 | 10 | |
12 | 11 | |
Collapse file
test/fixtures/errors/unhandled_promise_trace_warnings.snapshot
Copy file name to clipboardExpand all lines: test/fixtures/errors/unhandled_promise_trace_warnings.snapshot-2Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
11 | 11 | |
12 | 12 | |
13 | 13 | |
14 | | - |
15 | 14 | |
16 | 15 | |
17 | 16 | |
| ||
21 | 20 | |
22 | 21 | |
23 | 22 | |
24 | | - |
25 | 23 | |
26 | 24 | |
27 | 25 | |
|
Collapse file
test/fixtures/source-map/output/source_map_assert_source_line.snapshot
Copy file name to clipboardExpand all lines: test/fixtures/source-map/output/source_map_assert_source_line.snapshot-1Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
10 | 10 | |
11 | 11 | |
12 | 12 | |
13 | | - |
14 | 13 | |
15 | 14 | |
16 | 15 | |
|
Collapse file
test/message/assert_throws_stack.out
Copy file name to clipboardExpand all lines: test/message/assert_throws_stack.out-1Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
17 | 17 | |
18 | 18 | |
19 | 19 | |
20 | | - |
21 | 20 | |
22 | 21 | |
23 | 22 | |
|
Collapse file
test/message/internal_assert.out
Copy file name to clipboardExpand all lines: test/message/internal_assert.out-1Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
13 | 13 | |
14 | 14 | |
15 | 15 | |
16 | | - |
17 | 16 | |
18 | 17 | |
19 | 18 | |
|
Collapse file
test/message/internal_assert_fail.out
Copy file name to clipboardExpand all lines: test/message/internal_assert_fail.out-1Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
14 | 14 | |
15 | 15 | |
16 | 16 | |
17 | | - |
18 | 17 | |
19 | 18 | |
20 | 19 | |
|
Collapse file
test/message/util-inspect-error-cause.out
Copy file name to clipboardExpand all lines: test/message/util-inspect-error-cause.out+10-20Lines changed: 10 additions & 20 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
9 | | - |
10 | 9 | |
11 | 10 | |
12 | 11 | |
| ||
18 | 17 | |
19 | 18 | |
20 | 19 | |
21 | | - |
22 | 20 | |
23 | 21 | |
24 | 22 | |
| ||
35 | 33 | |
36 | 34 | |
37 | 35 | |
38 | | - |
39 | 36 | |
40 | 37 | |
41 | 38 | |
| ||
47 | 44 | |
48 | 45 | |
49 | 46 | |
50 | | - |
51 | 47 | |
52 | 48 | |
53 | 49 | |
| ||
57 | 53 | |
58 | 54 | |
59 | 55 | |
60 | | - |
| 56 | + |
61 | 57 | |
62 | 58 | |
63 | 59 | |
| ||
70 | 66 | |
71 | 67 | |
72 | 68 | |
73 | | - |
74 | 69 | |
75 | 70 | |
76 | 71 | |
77 | 72 | |
78 | 73 | |
79 | | - |
| 74 | + |
80 | 75 | |
81 | 76 | |
82 | 77 | |
83 | 78 | |
84 | | - |
| 79 | + |
85 | 80 | |
86 | 81 | |
87 | 82 | |
| ||
94 | 89 | |
95 | 90 | |
96 | 91 | |
97 | | - |
98 | 92 | |
99 | 93 | |
100 | 94 | |
| ||
103 | 97 | |
104 | 98 | |
105 | 99 | |
106 | | - |
| 100 | + |
107 | 101 | |
108 | 102 | |
109 | 103 | |
110 | 104 | |
111 | | - |
| 105 | + |
112 | 106 | |
113 | 107 | |
114 | 108 | |
| ||
121 | 115 | |
122 | 116 | |
123 | 117 | |
124 | | - |
125 | 118 | |
126 | 119 | |
127 | 120 | |
| ||
131 | 124 | |
132 | 125 | |
133 | 126 | |
134 | | - |
| 127 | + |
135 | 128 | |
136 | 129 | |
137 | 130 | |
| ||
144 | 137 | |
145 | 138 | |
146 | 139 | |
147 | | - |
148 | 140 | |
149 | 141 | |
150 | 142 | |
151 | 143 | |
152 | 144 | |
153 | | - |
| 145 | + |
154 | 146 | |
155 | 147 | |
156 | 148 | |
157 | 149 | |
158 | | - |
| 150 | + |
159 | 151 | |
160 | 152 | |
161 | 153 | |
| ||
168 | 160 | |
169 | 161 | |
170 | 162 | |
171 | | - |
172 | 163 | |
173 | 164 | |
174 | 165 | |
| ||
177 | 168 | |
178 | 169 | |
179 | 170 | |
180 | | - |
| 171 | + |
181 | 172 | |
182 | 173 | |
183 | 174 | |
184 | 175 | |
185 | | - |
| 176 | + |
186 | 177 | |
187 | 178 | |
188 | 179 | |
| ||
195 | 186 | |
196 | 187 | |
197 | 188 | |
198 | | - |
199 | 189 | |
200 | 190 | |
201 | 191 | |
0 commit comments