Commit e4b795e
lib: optimize
Only invalidates source map lookup cache when a new source map is found.
This improves when user codes interleave with builtin functions, like
`array.map`.
PR-URL: #56299
Refs: #56296
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Xuguang Mei <meixuguang@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com>prepareStackTrace on builtin frames1 parent d1b009b commit e4b795eCopy full SHA for e4b795e
File tree
Expand file treeCollapse file tree
4 files changed
+31
-17
lines changedOpen diff view settings
Filter options
- benchmark/fixtures
- lib/internal/source_map
Expand file treeCollapse file tree
4 files changed
+31
-17
lines changedOpen diff view settings
Collapse file
benchmark/fixtures/simple-error-stack.js
Copy file name to clipboardExpand all lines: benchmark/fixtures/simple-error-stack.js+11-10Lines changed: 11 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file
benchmark/fixtures/simple-error-stack.ts
Copy file name to clipboardExpand all lines: benchmark/fixtures/simple-error-stack.ts+7-5Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
5 | 5 | |
6 | 6 | |
7 | 7 | |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
13 | 15 | |
14 | 16 | |
15 | 17 | |
|
Collapse file
lib/internal/source_map/prepare_stack_trace.js
Copy file name to clipboardExpand all lines: lib/internal/source_map/prepare_stack_trace.js+8-2Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
53 | 53 | |
54 | 54 | |
55 | 55 | |
56 | | - |
57 | | - |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
58 | 62 | |
| 63 | + |
| 64 | + |
59 | 65 | |
60 | 66 | |
61 | 67 | |
|
Collapse file
lib/internal/source_map/source_map_cache.js
Copy file name to clipboardExpand all lines: lib/internal/source_map/source_map_cache.js+5Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
347 | 347 | |
348 | 348 | |
349 | 349 | |
| 350 | + |
| 351 | + |
| 352 | + |
| 353 | + |
| 354 | + |
350 | 355 | |
351 | 356 | |
352 | 357 | |
|
0 commit comments