Blame view

node_modules/when/es6-shim/Promise.browserify-es6.js 522 Bytes
ce4c83ff   wxy   初始提交
1
2
3
4
5
6
7
8
9
10
11
12
13
  /** @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;