ghaction-upx/node_modules/@sinonjs/commons/lib/global.js
2020-01-23 08:49:02 +00:00

17 lines
307 B
JavaScript

"use strict";
var globalObject;
/* istanbul ignore else */
if (typeof global !== "undefined") {
// Node
globalObject = global;
} else if (typeof window !== "undefined") {
// Browser
globalObject = window;
} else {
// WebWorker
globalObject = self;
}
module.exports = globalObject;