All new
alle new
This commit is contained in:
1 parent
da64472251
commit
5b20adee48
1605 files changed
+396517
-1674
No files matched your search
+18
@@ -0,0 +1,18 @@
|
||||
"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
|
||||
};
|
||||
Reference in new issue
Block a user