diff --git a/lib/nodelint.js b/lib/nodelint.js index f4ee867..2e6701c 100644 --- a/lib/nodelint.js +++ b/lib/nodelint.js @@ -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';