mirror of https://gitee.com/bigwinds/arangodb
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;
|