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.
13 lines
522 B
13 lines
522 B
/** @license MIT License (c) copyright 2010-2014 original author or authors */ |
|
/** @author Brian Cavalier */ |
|
/** @author John Hann */ |
|
|
|
/** |
|
* ES6 global Promise shim |
|
*/ |
|
var unhandledRejections = require('../lib/decorators/unhandledRejection'); |
|
var PromiseConstructor = unhandledRejections(require('../lib/Promise')); |
|
|
|
module.exports = typeof global != 'undefined' ? (global.Promise = PromiseConstructor) |
|
: typeof self != 'undefined' ? (self.Promise = PromiseConstructor) |
|
: PromiseConstructor;
|
|
|