promise-full.js 516 B

12345678910111213
  1. (function (name, factory) {
  2. if (typeof define === 'function' && (define.amd || define.cmd)) {
  3. define([], factory);
  4. } else if (typeof window !== "undefined" || typeof self !== "undefined") {
  5. var global = typeof window !== "undefined" ? window : self;
  6. global[name] = factory();
  7. } else {
  8. throw new Error("加载 " + name + " 模块失败!,请检查您的环境!")
  9. }
  10. })('Promise',function(){
  11. var Promise = require("../promise/setTimeout")
  12. return Promise;
  13. });