From e2c0c0c68074c539ae2ae30debdeafb9f94d989b Mon Sep 17 00:00:00 2001 From: Gus Caplan Date: Sat, 18 May 2019 22:48:46 -0500 Subject: 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 Reviewed-By: Rich Trott Reviewed-By: Matteo Collina --- lib/module.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/module.js') 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; -- cgit v1.2.3