mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
bootstrapper: move internalBinding to NativeModule
internalBinding is used so often that it should just automatically be available for usage in internals. PR-URL: https://github.com/nodejs/node/pull/23025 Refs: https://github.com/nodejs/node/commit/2a9eb31 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
1 parent
9800fd7aaa
commit
e7f710c1d4
71 files changed
+6
-74
No files matched your search
@@ -41,7 +41,6 @@ const {
|
||||
// that test/parallel/test-buffer-bindingobj-no-zerofill.js is written.
|
||||
let isAnyArrayBuffer;
|
||||
try {
|
||||
const { internalBinding } = require('internal/bootstrap/loaders');
|
||||
isAnyArrayBuffer = internalBinding('types').isAnyArrayBuffer;
|
||||
} catch (e) {
|
||||
isAnyArrayBuffer = require('util').types.isAnyArrayBuffer;
|
||||
|
||||
Reference in new issue
Block a user