pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/nodejs/node/commit/cb597f231a7c8ed91fec771aa0cb5295ea55a42c

r-b69241e157469407.css" /> lib: migrate from process.binding to internalBinding · nodejs/node@cb597f2 · GitHub
Skip to content

Commit cb597f2

Browse files
madeinjamMylesBorins
authored andcommitted
lib: migrate from process.binding to internalBinding
We are migrating towards using internalBinding(\'options\').getOptions() instead of process.binding(\'config\') to access the value of the --experimental-vm-modules command line option. PR-URL: #23586 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
1 parent 6f01a79 commit cb597f2

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

lib/vm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ module.exports = {
402402
compileFunction,
403403
};
404404

405-
if (process.binding('config').experimentalVMModules) {
405+
if (internalBinding('options').getOptions('--experimental-vm-modules')) {
406406
const { SourceTextModule } = require('internal/vm/source_text_module');
407407
module.exports.SourceTextModule = SourceTextModule;
408408
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Flags: --expose-internals
2+
'use strict';
3+
4+
const common = require('../common');
5+
6+
// This is to ensure that the sendInspectorCommand function calls the error
7+
// function if its called with the v8_enable_inspector is disabled
8+
9+
process.config.variables.v8_enable_inspector = 0;
10+
const inspector = require('internal/util/inspector');
11+
12+
inspector.sendInspectorCommand(
13+
common.mustNotCall('Inspector callback should not be called'),
14+
common.mustCall(1),
15+
);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy