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 — bootstrap: include event_target into the built-in snapshot · nodejs/node@5f37dec

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib/internal/bootstrap
    • browser.js
  • test/parallel
    • test-bootstrap-modules.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/internal/bootstrap/browser.js‎

Copy file name to clipboardExpand all lines: lib/internal/bootstrap/browser.js
+5-3Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,11 @@ defineOperation(globalThis, 'setTimeout', timers.setTimeout);
4242
exposeLazyInterfaces(globalThis, 'internal/abort_controller', [
4343
'AbortController', 'AbortSignal',
4444
]);
45-
exposeLazyInterfaces(globalThis, 'internal/event_target', [
46-
'EventTarget', 'Event',
47-
]);
45+
const {
46+
EventTarget, Event,
47+
} = require('internal/event_target');
48+
exposeInterface(globalThis, 'Event', Event);
49+
exposeInterface(globalThis, 'EventTarget', EventTarget);
4850
exposeLazyInterfaces(globalThis, 'internal/worker/io', [
4951
'MessageChannel', 'MessagePort', 'MessageEvent',
5052
]);
Collapse file

‎test/parallel/test-bootstrap-modules.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-bootstrap-modules.js
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ const expectedModules = new Set([
4646
'NativeModule internal/constants',
4747
'NativeModule internal/dns/utils',
4848
'NativeModule internal/errors',
49+
'NativeModule internal/event_target',
4950
'NativeModule internal/fixed_queue',
5051
'NativeModule internal/fs/utils',
5152
'NativeModule internal/idna',
@@ -90,6 +91,7 @@ const expectedModules = new Set([
9091
'NativeModule internal/vm',
9192
'NativeModule internal/vm/module',
9293
'NativeModule internal/wasm_web_api',
94+
'NativeModule internal/webidl',
9395
'NativeModule internal/worker/js_transferable',
9496
'Internal Binding blob',
9597
'NativeModule async_hooks',
@@ -99,6 +101,7 @@ const expectedModules = new Set([
99101
'NativeModule url',
100102
'NativeModule internal/v8/startup_snapshot',
101103
'NativeModule vm',
104+
'NativeModule util',
102105
]);
103106

104107
if (!common.isMainThread) {

0 commit comments

Comments
0 (0)
You are visitor 01402503 — 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.