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 — lib: do not register DOMException in a module · nodejs/node@96036ef

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib/internal
    • bootstrap
      • node.js
    • domexception.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/internal/bootstrap/node.js‎

Copy file name to clipboardExpand all lines: lib/internal/bootstrap/node.js
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,9 @@
434434

435435
function setupDOMException() {
436436
// Registers the constructor with C++.
437-
NativeModule.require('internal/domexception');
437+
const DOMException = NativeModule.require('internal/domexception');
438+
const { registerDOMException } = internalBinding('messaging');
439+
registerDOMException(DOMException);
438440
}
439441

440442
function setupInspector(originalConsole, wrappedConsole) {
Collapse file

‎lib/internal/domexception.js‎

Copy file name to clipboardExpand all lines: lib/internal/domexception.js
-3Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
'use strict';
22

3-
const { registerDOMException } = internalBinding('messaging');
43
const { ERR_INVALID_THIS } = require('internal/errors').codes;
54

65
const internalsMap = new WeakMap();
@@ -85,5 +84,3 @@ for (const [name, codeName, value] of [
8584
}
8685

8786
module.exports = DOMException;
88-
89-
registerDOMException(DOMException);

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.