Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
src: revert incorrect internalBinding back to process.binding
Revert the previous incorrect migration of internalBinding from
process.binding in lib/stream & inspect_repl.

Refs: #22160
  • Loading branch information
BeniCheni committed Feb 27, 2019
commit 6b348d38b1a17893c2218659d17cf44e80d21e46
2 changes: 1 addition & 1 deletion deps/node-inspect/lib/internal/inspect_repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function extractFunctionName(description) {
return fnNameMatch ? `: ${fnNameMatch[1]}` : '';
}

const NATIVES = internalBinding('natives');
const NATIVES = process.binding('natives');
function isNativeUrl(url) {
return url.replace('.js', '') in NATIVES || url === 'bootstrap_node.js';
}
Expand Down
2 changes: 1 addition & 1 deletion lib/stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ try {
// Please do not convert process.binding() to internalBinding() here.
// This is for compatibility with older versions when loaded as
// readable-stream.
Stream._isUint8Array = internalBinding('util').isUint8Array;
Stream._isUint8Array = process.binding('util').isUint8Array;
}
} catch (e) { // eslint-disable-line no-unused-vars
}
Expand Down