summaryrefslogtreecommitdiff
path: root/lib/module.js
diff options
context:
space:
mode:
authorGus Caplan <me@gus.host>2019-05-18 22:48:46 -0500
committerGus Caplan <me@gus.host>2019-05-26 13:04:29 -0500
commite2c0c0c68074c539ae2ae30debdeafb9f94d989b (patch)
tree4b1748c744aa778f688804258c432cd5986cba64 /lib/module.js
parent73c16b11e006256c2d41e70e964a4960ba435759 (diff)
downloadandroid-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/module.js')
-rw-r--r--lib/module.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/module.js b/lib/module.js
index 962f18b054..a767330f5e 100644
--- a/lib/module.js
+++ b/lib/module.js
@@ -1,3 +1,3 @@
'use strict';
-module.exports = require('internal/modules/cjs/loader');
+module.exports = require('internal/modules/cjs/loader').Module;