mirror of
https://github.com/nodejs/node.git
synced 2025-05-05 17:10:40 +00:00

test/common.js contains code that detects global variable leaks. This eslint rule checks that a module named `common` is loaded. It is only applicable to files in the test directory. Tests that intentionally leak variables can opt out with an eslint-disable comment. PR-URL: https://github.com/nodejs/node/pull/3157 Reviewed-By: Rod Vagg <rod@vagg.org> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
8 lines
132 B
JavaScript
8 lines
132 B
JavaScript
/* eslint-disable required-modules */
|
|
'use strict';
|
|
|
|
Object.prototype.xadsadsdasasdxx = function() {
|
|
};
|
|
|
|
console.log('puts after');
|