Commit adce20c
test: print stack immediately avoiding GC interleaving
`require(mod)` does not keep the mod in require cache if
mod throws synchronously. This fixes the tests to print
the stack immediately in case that source map cache could
be cleaned up when the CJS module is reclaimed by GC in
the next event loop tick.
PR-URL: #61699
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>1 parent c1c6641 commit adce20cCopy full SHA for adce20c
3 files changed
+6-6Lines changed: 6 additions & 6 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- lib/internal/source_map
- test/fixtures/source-map/output
Expand file treeCollapse file tree
Open diff view settings
Collapse file
lib/internal/source_map/source_map_cache_map.js
Copy file name to clipboardExpand all lines: lib/internal/source_map/source_map_cache_map.js+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
13 | 13 | |
14 | 14 | |
15 | 15 | |
| 16 | + |
| 17 | + |
| 18 | + |
16 | 19 | |
17 | 20 | |
18 | 21 | |
| ||
46 | 49 | |
47 | 50 | |
48 | 51 | |
| 52 | + |
49 | 53 | |
50 | 54 | |
51 | 55 | |
|
Collapse file
test/fixtures/source-map/output/source_map_sourcemapping_url_string.js
Copy file name to clipboardExpand all lines: test/fixtures/source-map/output/source_map_sourcemapping_url_string.js+1-3Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
7 | 7 | |
8 | 8 | |
9 | 9 | |
10 | | - |
11 | | - |
12 | | - |
| 10 | + |
13 | 11 | |
Collapse file
test/fixtures/source-map/output/source_map_throw_catch.js
Copy file name to clipboardExpand all lines: test/fixtures/source-map/output/source_map_throw_catch.js+1-3Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
7 | 7 | |
8 | 8 | |
9 | 9 | |
10 | | - |
11 | | - |
12 | | - |
| 10 | + |
13 | 11 | |
0 commit comments