mirror of
https://github.com/musix-org/musix-oss
synced 2026-05-05 22:46:34 +00:00
fix
This commit is contained in:
+13
@@ -0,0 +1,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;
|
||||
+1299
File diff suppressed because it is too large
Load Diff
+25
File diff suppressed because one or more lines are too long
+2
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+5
@@ -0,0 +1,5 @@
|
||||
# ES6 Promise shim
|
||||
|
||||
Promise.js in this dir contains a complete ES6 Promise shim built on when.js that adds a global `Promise` in browser, AMD, Node, and other CommonJS environments.
|
||||
|
||||
[Go to the full documentation](../docs/es6-promise-shim.md)
|
||||
Reference in New Issue
Block a user