404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.19.218.250: ~ $
/*global self*/
import Promise from './promise';

export default function polyfill() {
  let local;

  if (typeof global !== 'undefined') {
    local = global;
  } else if (typeof self !== 'undefined') {
    local = self;
  } else {
    try {
      local = Function('return this')();
    } catch (e) {
      throw new Error('polyfill failed because global object is unavailable in this environment');
    }
  }

  let P = local.Promise;

  if (P) {
    var promiseToString = null;
    try {
      promiseToString = Object.prototype.toString.call(P.resolve());
    } catch(e) {
      // silently ignored
    }

    if (promiseToString === '[object Promise]' && !P.cast){
      return;
    }
  }

  local.Promise = Promise;
}

Filemanager

Name Type Size Permission Actions
promise Folder 0755
-internal.js File 5.19 KB 0644
asap.js File 3.1 KB 0644
enumerator.js File 2.78 KB 0644
polyfill.js File 724 B 0644
promise.js File 9.81 KB 0644
then.js File 609 B 0644
utils.js File 468 B 0644