PATH: //opt/alt/alt-nodejs10/root/lib/node_modules/npm/node_modules/bluebird/js/release
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 any.js
↓
X
📄 assert.js
↓
X
📄 async.js
↓
X
📄 bind.js
↓
X
📄 bluebird.js
↓
X
📄 call_get.js
↓
X
📄 cancel.js
↓
X
📄 catch_filter.js
↓
X
📄 context.js
↓
X
📄 debuggability.js
↓
X
📄 direct_resolve.js
↓
X
📄 each.js
↓
X
📄 errors.js
↓
X
📄 es5.js
↓
X
📄 filter.js
↓
X
📄 finally.js
↓
X
📄 generators.js
↓
X
📄 join.js
↓
X
📄 map.js
↓
X
📄 method.js
↓
X
📄 nodeback.js
↓
X
📄 nodeify.js
↓
X
📄 promise.js
↓
X
📄 promise_array.js
↓
X
📄 promisify.js
↓
X
📄 props.js
↓
X
📄 queue.js
↓
X
📄 race.js
↓
X
📄 reduce.js
↓
X
📄 schedule.js
↓
X
📄 settle.js
↓
X
📄 some.js
↓
X
📄 synchronous_inspection.js
↓
X
📄 thenables.js
↓
X
📄 timers.js
↓
X
📄 using.js
↓
X
📄 util.js
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: direct_resolve.js
"use strict"; module.exports = function(Promise) { function returner() { return this.value; } function thrower() { throw this.reason; } Promise.prototype["return"] = Promise.prototype.thenReturn = function (value) { if (value instanceof Promise) value.suppressUnhandledRejections(); return this._then( returner, undefined, undefined, {value: value}, undefined); }; Promise.prototype["throw"] = Promise.prototype.thenThrow = function (reason) { return this._then( thrower, undefined, undefined, {reason: reason}, undefined); }; Promise.prototype.catchThrow = function (reason) { if (arguments.length <= 1) { return this._then( undefined, thrower, undefined, {reason: reason}, undefined); } else { var _reason = arguments[1]; var handler = function() {throw _reason;}; return this.caught(reason, handler); } }; Promise.prototype.catchReturn = function (value) { if (arguments.length <= 1) { if (value instanceof Promise) value.suppressUnhandledRejections(); return this._then( undefined, returner, undefined, {value: value}, undefined); } else { var _value = arguments[1]; if (_value instanceof Promise) _value.suppressUnhandledRejections(); var handler = function() {return _value;}; return this.caught(value, handler); } }; };
SIMPAN PERUBAHAN