diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-09-08 22:01:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-08 22:01:48 +0200 |
commit | 6c179daff07fe60d478142ea86231a34dc9ee1fd (patch) | |
tree | 39ff8701af61eec0674827b4ef62de1d4087e407 /ext/node/02_require.js | |
parent | 93cbac69e8a53fbb393fc7a2f12654b223cf01ad (diff) |
fix(npm): recursive translation of reexports, remove window global in node code (#15806)
Co-authored-by: David Sherret <dsherret@gmail.com>
Diffstat (limited to 'ext/node/02_require.js')
-rw-r--r-- | ext/node/02_require.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/node/02_require.js b/ext/node/02_require.js index 4f2a998b2..582d42194 100644 --- a/ext/node/02_require.js +++ b/ext/node/02_require.js @@ -658,7 +658,7 @@ Module.wrapper = [ // We provide the non-standard APIs in the CommonJS wrapper // to avoid exposing them in global namespace. - "(function (exports, require, module, __filename, __dirname, globalThis) { const { Buffer, clearImmediate, clearInterval, clearTimeout, global, process, setImmediate, setInterval, setTimeout} = globalThis; (function () {", + "(function (exports, require, module, __filename, __dirname, globalThis) { const { Buffer, clearImmediate, clearInterval, clearTimeout, global, process, setImmediate, setInterval, setTimeout} = globalThis; var window = undefined; (function () {", "\n}).call(this); })", ]; Module.wrap = function (script) { |