GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: print stack immediately avoiding GC interleaving · nodejs/node@2d3b4a8

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib/internal/source_map
    • source_map_cache_map.js
  • test/fixtures/source-map/output
    • source_map_sourcemapping_url_string.js
    • source_map_throw_catch.js
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 numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ const {
1313
source_map_data_private_symbol,
1414
},
1515
} = internalBinding('util');
16+
let debug = require('internal/util/debuglog').debuglog('source_map', (fn) => {
17+
debug = fn;
18+
});
1619

1720
/**
1821
* Specialized map of WeakRefs to module instances that caches source map
@@ -46,6 +49,7 @@ class SourceMapCacheMap {
4649
ArrayPrototypeForEach(keys, (key) => {
4750
const ref = this.#weakModuleMap.get(key);
4851
if (ref && ref.deref() === undefined) {
52+
debug(`Cleanup obsolete source map cache entry with key: ${key}`);
4953
this.#weakModuleMap.delete(key);
5054
}
5155
});
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 numberDiff line numberDiff line change
@@ -7,7 +7,5 @@ Error.stackTraceLimit = 2;
77
try {
88
require('../typescript-sourcemapping_url_string');
99
} catch (err) {
10-
setTimeout(() => {
11-
console.info(err);
12-
}, 10);
10+
console.info(err);
1311
}
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 numberDiff line numberDiff line change
@@ -7,7 +7,5 @@ Error.stackTraceLimit = 2;
77
try {
88
require('../typescript-throw');
99
} catch (err) {
10-
setTimeout(() => {
11-
console.info(err);
12-
}, 10);
10+
console.info(err);
1311
}

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.