| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent cae9ff2 commit ee4390a
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -89,7 +89,7 @@ const builtinLibs = [ | |||
| 89 | 89 | 'stream', 'string_decoder', 'tls', 'tty', 'url', 'util', 'v8', 'vm', 'zlib' | |
| 90 | 90 | ]; | |
| 91 | 91 | ||
| 92 | - if (typeof process.binding('inspector').connect === 'function') { | ||
| 92 | + if (typeof process.binding('inspector').open === 'function') { | ||
| 93 | 93 | builtinLibs.push('inspector'); | |
| 94 | 94 | builtinLibs.sort(); | |
| 95 | 95 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,11 @@ | |||
| 1 | + 'use strict'; | ||
| 2 | + // Flags: --expose-internals | ||
| 3 | + | ||
| 4 | + require('../common'); | ||
| 5 | + const assert = require('assert'); | ||
| 6 | + const { builtinLibs } = require('internal/module'); | ||
| 7 | + | ||
| 8 | + const hasInspector = process.config.variables.v8_enable_inspector === 1; | ||
| 9 | + | ||
| 10 | + const expectedLibs = hasInspector ? 32 : 31; | ||
| 11 | + assert.strictEqual(builtinLibs.length, expectedLibs); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments