.
This commit is contained in:
		
							
								
								
									
										21
									
								
								qwen/nodejs/node_modules/@sinonjs/commons/lib/global.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								qwen/nodejs/node_modules/@sinonjs/commons/lib/global.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
			
		||||
"use strict";
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * A reference to the global object
 | 
			
		||||
 * @type {object} globalObject
 | 
			
		||||
 */
 | 
			
		||||
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;
 | 
			
		||||
		Reference in New Issue
	
	Block a user