diff options
author | Gus Caplan <me@gus.host> | 2019-05-18 22:48:46 -0500 |
---|---|---|
committer | Gus Caplan <me@gus.host> | 2019-05-26 13:04:29 -0500 |
commit | e2c0c0c68074c539ae2ae30debdeafb9f94d989b (patch) | |
tree | 4b1748c744aa778f688804258c432cd5986cba64 /lib/internal/util | |
parent | 73c16b11e006256c2d41e70e964a4960ba435759 (diff) | |
download | android-node-v8-e2c0c0c68074c539ae2ae30debdeafb9f94d989b.tar.gz android-node-v8-e2c0c0c68074c539ae2ae30debdeafb9f94d989b.tar.bz2 android-node-v8-e2c0c0c68074c539ae2ae30debdeafb9f94d989b.zip |
lib: rework logic of stripping BOM+Shebang from commonjs
Fixes https://github.com/nodejs/node/issues/27767
PR-URL: https://github.com/nodejs/node/pull/27768
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'lib/internal/util')
-rw-r--r-- | lib/internal/util/inspector.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/internal/util/inspector.js b/lib/internal/util/inspector.js index 70868e7324..5230137fce 100644 --- a/lib/internal/util/inspector.js +++ b/lib/internal/util/inspector.js @@ -24,7 +24,7 @@ function sendInspectorCommand(cb, onError) { function installConsoleExtensions(commandLineApi) { if (commandLineApi.require) { return; } const { tryGetCwd } = require('internal/process/execution'); - const CJSModule = require('internal/modules/cjs/loader'); + const CJSModule = require('internal/modules/cjs/loader').Module; const { makeRequireFunction } = require('internal/modules/cjs/helpers'); const consoleAPIModule = new CJSModule('<inspector console>'); const cwd = tryGetCwd(); |