Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
617bfe4
lib: remove internalBinding('config').pendingDeprecation
joyeecheung Dec 11, 2018
c168672
inspector: move process.binding to internalBinding
BeniCheni Dec 10, 2018
dc4e5c5
util: inspect ArrayBuffers contents as well
BridgeAR Dec 13, 2018
0c67a51
lib: remove internal `util._extends()` usage
BridgeAR Dec 18, 2018
e97acf7
lib: expose all type checks from the internal types module
BridgeAR Dec 20, 2018
95fa3c7
buffer: inspect extra properties
BridgeAR Dec 20, 2018
7ff4402
lib: move lib/console.js to lib/internal/console/constructor.js
joyeecheung Nov 28, 2018
2f1f009
console: split console into global.js and constructor.js
joyeecheung Nov 28, 2018
6280cda
console: move the inspector console wrapping in a separate file
joyeecheung Nov 28, 2018
6bf7511
console: add `inspectOptions` option
BridgeAR Dec 12, 2018
049b24d
console: improve inspectOptions validation
cjihrig Dec 17, 2018
8d166c9
process: provide dummy stdio for non-console Windows apps
addaleax May 9, 2018
c219b8f
Revert "lib: expose all type checks from the internal types module"
joyeecheung Jan 11, 2019
f4dbe57
Revert "inspector: move process.binding to internalBinding"
joyeecheung Jan 11, 2019
7aeec97
Revert "lib: remove internalBinding('config').pendingDeprecation"
joyeecheung Jan 11, 2019
48dfda7
Revert "os: move process.binding('os') to internalBinding"
joyeecheung Jan 11, 2019
abfde34
Revert "lib: remove unused NativeModule/NativeModule wraps"
joyeecheung Jan 11, 2019
c5b2c31
Revert "src,lib: make process.binding('config') internal"
joyeecheung Jan 11, 2019
fb6f2f2
Revert "lib: remove duplicated noop function"
joyeecheung Jan 11, 2019
106b299
fs: make process.binding('fs') internal
Aug 23, 2018
9a5984d
src: use NativeModuleLoader to compile all the bootstrappers
joyeecheung Nov 26, 2018
373bbe7
lib: remove duplicated noop function
ZYSzys Dec 1, 2018
b6afa46
src,lib: make process.binding('config') internal
Oct 8, 2018
5bc4592
lib: remove unused NativeModule/NativeModule wraps
joyeecheung Dec 8, 2018
e05e5b3
inspector: move process.binding to internalBinding
BeniCheni Dec 10, 2018
181d03a
os: move process.binding('os') to internalBinding
briete Dec 17, 2018
4cb9036
lib: remove internalBinding('config').pendingDeprecation
joyeecheung Dec 11, 2018
7d90f03
lib: expose all type checks from the internal types module
BridgeAR Dec 20, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
inspector: move process.binding to internalBinding
In places of process.binding('inspector'), migrate code to adapt
internalBinding.

PR-URL: #24931
Refs: #22160
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
BeniCheni authored and BridgeAR committed Jan 10, 2019
commit c168672158fff539bbff7e0391dc21fd0a8acd17
2 changes: 1 addition & 1 deletion lib/inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const {
} = require('internal/errors').codes;
const { validateString } = require('internal/validators');
const util = require('util');
const { Connection, open, url } = process.binding('inspector');
const { Connection, open, url } = internalBinding('inspector');
const { originalConsole } = require('internal/process/per_thread');

if (!Connection)
Expand Down
1 change: 1 addition & 0 deletions lib/internal/bootstrap/loaders.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
'fs_event_wrap',
'http_parser',
'icu',
'inspector',
'js_stream',
'natives',
'os',
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/inspector_async_hook.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const inspector = process.binding('inspector');
const inspector = internalBinding('inspector');

if (!inspector || !inspector.asyncTaskScheduled) {
exports.setup = function() {};
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/modules/cjs/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ if (getOptionValue('--experimental-worker')) {
builtinLibs.sort();
}

if (typeof process.binding('inspector').open === 'function') {
if (typeof internalBinding('inspector').open === 'function') {
builtinLibs.push('inspector');
builtinLibs.sort();
}
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/modules/cjs/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ Module.prototype._compile = function(content, filename) {
// Set breakpoint on module start
if (filename === resolvedArgv) {
delete process._breakFirstLine;
inspectorWrapper = process.binding('inspector').callAndPauseOnStart;
inspectorWrapper = internalBinding('inspector').callAndPauseOnStart;
}
}
var dirname = path.dirname(filename);
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/modules/esm/module_job.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class ModuleJob {
try {
if (this.isMain && process._breakFirstLine) {
delete process._breakFirstLine;
const initWrapper = process.binding('inspector').callAndPauseOnStart;
const initWrapper = internalBinding('inspector').callAndPauseOnStart;
initWrapper(this.module.instantiate, this.module);
} else {
this.module.instantiate();
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/process/coverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function disableAllAsyncHooks() {
exports.writeCoverage = writeCoverage;

function setup() {
const { Connection } = process.binding('inspector');
const { Connection } = internalBinding('inspector');
if (!Connection) {
console.warn('inspector not enabled');
return;
Expand Down
2 changes: 1 addition & 1 deletion src/inspector_js_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -315,5 +315,5 @@ void Initialize(Local<Object> target, Local<Value> unused,
} // namespace inspector
} // namespace node

NODE_BUILTIN_MODULE_CONTEXT_AWARE(inspector,
NODE_MODULE_CONTEXT_AWARE_INTERNAL(inspector,
node::inspector::Initialize);
2 changes: 1 addition & 1 deletion src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2238,5 +2238,5 @@ int Start(int argc, char** argv) {
#if !HAVE_INSPECTOR
void Initialize() {}

NODE_BUILTIN_MODULE_CONTEXT_AWARE(inspector, Initialize)
NODE_MODULE_CONTEXT_AWARE_INTERNAL(inspector, Initialize)
#endif // !HAVE_INSPECTOR
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ assert(process.binding('url'));
assert(process.binding('spawn_sync'));
assert(process.binding('js_stream'));
assert(process.binding('buffer'));
assert(process.binding('inspector'));
assert(process.binding('os'));
2 changes: 1 addition & 1 deletion test/sequential/test-async-wrap-getasyncid.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ if (common.hasCrypto) { // eslint-disable-line node-core/crypto-check

if (process.config.variables.v8_enable_inspector !== 0 &&
common.isMainThread) {
const binding = process.binding('inspector');
const binding = internalBinding('inspector');
const handle = new binding.Connection(() => {});
testInitialized(handle, 'Connection');
handle.disconnect();
Expand Down