summaryrefslogtreecommitdiff
path: root/lib/internal/bootstrap/node.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/bootstrap/node.js')
-rw-r--r--lib/internal/bootstrap/node.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/internal/bootstrap/node.js b/lib/internal/bootstrap/node.js
index 98d4b3c1d9..67093089f7 100644
--- a/lib/internal/bootstrap/node.js
+++ b/lib/internal/bootstrap/node.js
@@ -566,7 +566,9 @@
function setupDOMException() {
// Registers the constructor with C++.
- NativeModule.require('internal/domexception');
+ const DOMException = NativeModule.require('internal/domexception');
+ const { registerDOMException } = internalBinding('messaging');
+ registerDOMException(DOMException);
}
function setupInspector(originalConsole, wrappedConsole) {