PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/react-native/node_modules/promise/src

Просмотр файла: done.js

'use strict';

var Promise = require('./core.js');

module.exports = Promise;
Promise.prototype.done = function (onFulfilled, onRejected) {
  var self = arguments.length ? this.then.apply(this, arguments) : this;
  self.then(null, function (err) {
    setTimeout(function () {
      throw err;
    }, 0);
  });
};

Выполнить команду


Для локальной разработки. Не используйте в интернете!