GeezerVison is showing github.com — bootstrapper: move internalBinding to NativeModule · styfle/node@e7f710c
File treeExpand file treeCollapse file tree Open diff view settings Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: lib/.eslintrc.yaml +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -44,3 +44,4 @@ globals: | 44 | 44 | DCHECK_LE: false | 45 | 45 | DCHECK_LT: false | 46 | 46 | DCHECK_NE: false | | 47 | + internalBinding: false |
Collapse file Copy file name to clipboardExpand all lines: lib/_http_client.js -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 24 | 24 | const util = require('util'); | 25 | 25 | const net = require('net'); | 26 | 26 | const url = require('url'); | 27 | | -const { internalBinding } = require('internal/bootstrap/loaders'); | 28 | 27 | const { HTTPParser } = internalBinding('http_parser'); | 29 | 28 | const assert = require('assert').ok; | 30 | 29 | const { | |
Collapse file Copy file name to clipboardExpand all lines: lib/_http_common.js -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 21 | 21 |
| 22 | 22 | 'use strict'; | 23 | 23 |
| 24 | | -const { internalBinding } = require('internal/bootstrap/loaders'); | 25 | 24 | const { methods, HTTPParser } = internalBinding('http_parser'); | 26 | 25 |
| 27 | 26 | const FreeList = require('internal/freelist'); | |
Collapse file Copy file name to clipboardExpand all lines: lib/_http_server.js -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 23 | 23 |
| 24 | 24 | const util = require('util'); | 25 | 25 | const net = require('net'); | 26 | | -const { internalBinding } = require('internal/bootstrap/loaders'); | 27 | 26 | const { HTTPParser } = internalBinding('http_parser'); | 28 | 27 | const assert = require('assert').ok; | 29 | 28 | const { | |
Collapse file Copy file name to clipboardExpand all lines: lib/_tls_common.js -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -34,7 +34,6 @@ const { SSL_OP_CIPHER_SERVER_PREFERENCE } = process.binding('constants').crypto; | 34 | 34 | // Lazily loaded from internal/crypto/util. | 35 | 35 | let toBuf = null; | 36 | 36 |
| 37 | | -const { internalBinding } = require('internal/bootstrap/loaders'); | 38 | 37 | const { SecureContext: NativeSecureContext } = internalBinding('crypto'); | 39 | 38 | function SecureContext(secureProtocol, secureOptions, context) { | 40 | 39 | if (!(this instanceof SecureContext)) { | |
Collapse file Copy file name to clipboardExpand all lines: lib/_tls_wrap.js -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -32,7 +32,6 @@ const common = require('_tls_common'); | 32 | 32 | const { StreamWrap } = require('_stream_wrap'); | 33 | 33 | const { Buffer } = require('buffer'); | 34 | 34 | const debug = util.debuglog('tls'); | 35 | | -const { internalBinding } = require('internal/bootstrap/loaders'); | 36 | 35 | const { TCP, constants: TCPConstants } = internalBinding('tcp_wrap'); | 37 | 36 | const tls_wrap = internalBinding('tls_wrap'); | 38 | 37 | const { Pipe, constants: PipeConstants } = internalBinding('pipe_wrap'); | |
Collapse file Copy file name to clipboardExpand all lines: lib/buffer.js -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -41,7 +41,6 @@ const { | 41 | 41 | // that test/parallel/test-buffer-bindingobj-no-zerofill.js is written. | 42 | 42 | let isAnyArrayBuffer; | 43 | 43 | try { | 44 | | - const { internalBinding } = require('internal/bootstrap/loaders'); | 45 | 44 | isAnyArrayBuffer = internalBinding('types').isAnyArrayBuffer; | 46 | 45 | } catch (e) { | 47 | 46 | isAnyArrayBuffer = require('util').types.isAnyArrayBuffer; | |
Collapse file Copy file name to clipboardExpand all lines: lib/child_process.js -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -28,7 +28,6 @@ const { | 28 | 28 | const { isArrayBufferView } = require('internal/util/types'); | 29 | 29 | const debug = util.debuglog('child_process'); | 30 | 30 | const { Buffer } = require('buffer'); | 31 | | -const { internalBinding } = require('internal/bootstrap/loaders'); | 32 | 31 | const { Pipe, constants: PipeConstants } = internalBinding('pipe_wrap'); | 33 | 32 | const { | 34 | 33 | ERR_INVALID_ARG_VALUE, | |
Collapse file Copy file name to clipboardExpand all lines: lib/console.js -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -29,7 +29,6 @@ const { | 29 | 29 | ERR_INVALID_ARG_VALUE, | 30 | 30 | }, | 31 | 31 | } = require('internal/errors'); | 32 | | -const { internalBinding } = require('internal/bootstrap/loaders'); | 33 | 32 | const { previewEntries } = internalBinding('util'); | 34 | 33 | const { Buffer: { isBuffer } } = require('buffer'); | 35 | 34 | const util = require('util'); | |
Collapse file Copy file name to clipboardExpand all lines: lib/crypto.js -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -30,7 +30,6 @@ const { | 30 | 30 | } = require('internal/util'); | 31 | 31 | assertCrypto(); | 32 | 32 |
| 33 | | -const { internalBinding } = require('internal/bootstrap/loaders'); | 34 | 33 | const { | 35 | 34 | ERR_CRYPTO_FIPS_FORCED, | 36 | 35 | ERR_CRYPTO_FIPS_UNAVAILABLE | |
|