You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					19 lines
				
				438 B
			
		
		
			
		
	
	
					19 lines
				
				438 B
			| 
											2 years ago
										 | "use strict"; | ||
|  | 
 | ||
|  | // load the global object first:
 | ||
|  | // - it should be better integrated in the system (unhandledRejection in node)
 | ||
|  | // - the environment may have a custom Promise implementation (see zone.js)
 | ||
|  | var ES6Promise = null; | ||
|  | if (typeof Promise !== "undefined") { | ||
|  |     ES6Promise = Promise; | ||
|  | } else { | ||
|  |     ES6Promise = require("lie"); | ||
|  | } | ||
|  | 
 | ||
|  | /** | ||
|  |  * Let the user use/change some implementations. | ||
|  |  */ | ||
|  | module.exports = { | ||
|  |     Promise: ES6Promise | ||
|  | }; |