Skip to content

Commit 4959b49

Browse files
committed
snapshot pre-execution
1 parent c330a62 commit 4959b49

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

lib/internal/bootstrap/browser.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ const {
4747
} = require('internal/event_target');
4848
exposeInterface(globalThis, 'Event', Event);
4949
exposeInterface(globalThis, 'EventTarget', EventTarget);
50-
// exposeLazyInterfaces(globalThis, 'internal/event_target', [
51-
// 'EventTarget', 'Event',
52-
// ]);
5350
exposeLazyInterfaces(globalThis, 'internal/worker/io', [
5451
'MessageChannel', 'MessagePort', 'MessageEvent',
5552
]);

lib/internal/bootstrap/switches/is_main_thread.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,3 +311,7 @@ require('internal/source_map/source_map_cache');
311311
require('internal/modules/run_main');
312312
// Needed to refresh DNS configurations.
313313
require('internal/dns/utils');
314+
// Needed by almost all execution modes. It's fine to
315+
// load them into the snapshot as long as we don't run
316+
// any of the initialization.
317+
require('internal/process/pre_execution');

test/sequential/test-inspector-break-when-eval.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ const { NodeInstance } = require('../common/inspector-helper.js');
66
const fixtures = require('../common/fixtures');
77
const { pathToFileURL } = require('url');
88

9-
// This needs to be a ESM to work around
10-
// https://bugs.chromium.org/p/chromium/issues/detail?id=1246905
11-
const script = fixtures.path('inspector-global-function.mjs');
9+
const script = fixtures.path('inspector-global-function.js');
1210

1311
async function setupDebugger(session) {
1412
console.log('[test]', 'Setting up a debugger');

0 commit comments

Comments
 (0)