mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
Update ESLint to 3.0.0. This includes an enhancement to `no-unused-vars` such that it finds a few instances in our code base that it did not find previously (fixed in previous commits readying this for landing). PR-URL: https://github.com/nodejs/node/pull/7601 Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
16 lines
521 B
JavaScript
16 lines
521 B
JavaScript
var checkGlobal = require('./_checkGlobal');
|
|
|
|
/** Detect free variable `global` from Node.js. */
|
|
var freeGlobal = checkGlobal(typeof global == 'object' && global);
|
|
|
|
/** Detect free variable `self`. */
|
|
var freeSelf = checkGlobal(typeof self == 'object' && self);
|
|
|
|
/** Detect `this` as the global object. */
|
|
var thisGlobal = checkGlobal(typeof this == 'object' && this);
|
|
|
|
/** Used as a reference to the global object. */
|
|
var root = freeGlobal || freeSelf || thisGlobal || Function('return this')();
|
|
|
|
module.exports = root;
|