Skip to content

Commit af4c26f

Browse files
committed
tools: no-unassigned-vars
1 parent 69c2e17 commit af4c26f

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

lib/internal/modules/cjs/loader.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1798,8 +1798,6 @@ Module.prototype._compile = function(content, filename, format) {
17981798
}
17991799
}
18001800

1801-
let redirects;
1802-
18031801
let compiledWrapper;
18041802
if (format !== 'module') {
18051803
const result = wrapSafe(filename, content, this, format);
@@ -1815,7 +1813,7 @@ Module.prototype._compile = function(content, filename, format) {
18151813
}
18161814

18171815
const dirname = path.dirname(filename);
1818-
const require = makeRequireFunction(this, redirects);
1816+
const require = makeRequireFunction(this);
18191817
let result;
18201818
const exports = this.exports;
18211819
const thisValue = exports;

test/es-module/test-esm-detect-ambiguous.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ describe('Module syntax detection', { concurrency: !process.env.TEST_PARALLEL },
147147
}
148148

149149
it('should not hint wrong format in resolve hook', async () => {
150+
// eslint-disable-next-line no-unassigned-vars
150151
let writeSync;
151152
const { stdout, stderr, code, signal } = await spawnPromisified(process.execPath, [
152153
'--no-warnings',

0 commit comments

Comments
 (0)