Skip to content

Commit

Permalink
Fix reid#182 Warning: Accessing non-existent property 'runMain'
Browse files Browse the repository at this point in the history
Fixes reid#182.
  • Loading branch information
mk-pmb committed Jul 11, 2022
1 parent 1eefcc4 commit 43cd62a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/nodelint.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ exports.LintStream = LintStream;

exports.linter = linter;

exports.runMain = main.runMain;
exports.runMain = function proxy() {
// Proxying this fixes issue #182, "Warning: Accessing non-existent
// property 'runMain' of module exports inside circular dependency"
return main.runMain.call(null, arguments);
};

exports.setConsole = function (c) {
'use strict';
Expand Down

0 comments on commit 43cd62a

Please sign in to comment.