Repository navigation
Commit 8dd31df
committed
module: fix require(esm) error annotation with tracing subscriber
reconstructErrorStack() took the first stack frame as the caller, but
with a module.require tracing subscriber that frame is
TracingChannel.traceSync, so the arrow pointed at a nonexistent line
of the parent file. Pick the first frame that belongs to the parent.
Fixes: #553501 parent 14ed05f commit 8dd31df
2 files changed
Lines changed: 28 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| 60 | + | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
| |||
2011 | 2013 | | |
2012 | 2014 | | |
2013 | 2015 | | |
2014 | | - | |
| 2016 | + | |
2015 | 2017 | | |
2016 | | - | |
| 2018 | + | |
| 2019 | + | |
| 2020 | + | |
| 2021 | + | |
2017 | 2022 | | |
2018 | | - | |
| 2023 | + | |
2019 | 2024 | | |
2020 | 2025 | | |
2021 | 2026 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
75 | 95 | | |
0 commit comments