external.js 438 B

123456789101112131415161718
  1. "use strict";
  2. // load the global object first:
  3. // - it should be better integrated in the system (unhandledRejection in node)
  4. // - the environment may have a custom Promise implementation (see zone.js)
  5. var ES6Promise = null;
  6. if (typeof Promise !== "undefined") {
  7. ES6Promise = Promise;
  8. } else {
  9. ES6Promise = require("lie");
  10. }
  11. /**
  12. * Let the user use/change some implementations.
  13. */
  14. module.exports = {
  15. Promise: ES6Promise
  16. };