X7ROOT File Manager
Current Path:
/usr/lib/node_modules/npm/node_modules/bluebird/js/release
usr
/
lib
/
node_modules
/
npm
/
node_modules
/
bluebird
/
js
/
release
/
ðŸ“
..
📄
any.js
(421 B)
📄
assert.js
(1.61 KB)
📄
async.js
(4.05 KB)
📄
bind.js
(1.92 KB)
📄
bluebird.js
(291 B)
📄
call_get.js
(4.25 KB)
📄
cancel.js
(3.62 KB)
📄
catch_filter.js
(1.39 KB)
📄
context.js
(2.33 KB)
📄
debuggability.js
(29.63 KB)
📄
direct_resolve.js
(1.36 KB)
📄
each.js
(789 B)
📄
errors.js
(3.63 KB)
📄
es5.js
(1.93 KB)
📄
filter.js
(314 B)
📄
finally.js
(4.5 KB)
📄
generators.js
(7.58 KB)
📄
join.js
(8.03 KB)
📄
map.js
(5.25 KB)
📄
method.js
(1.73 KB)
📄
nodeback.js
(1.52 KB)
📄
nodeify.js
(1.61 KB)
📄
promise.js
(25.59 KB)
📄
promise_array.js
(5.08 KB)
📄
promisify.js
(11.9 KB)
📄
props.js
(3.04 KB)
📄
queue.js
(1.83 KB)
📄
race.js
(1.22 KB)
📄
reduce.js
(5.01 KB)
📄
schedule.js
(2.1 KB)
📄
settle.js
(1.23 KB)
📄
some.js
(3.87 KB)
📄
synchronous_inspection.js
(2.75 KB)
📄
thenables.js
(2.08 KB)
📄
timers.js
(2.34 KB)
📄
using.js
(7.35 KB)
📄
util.js
(10.28 KB)
Editing: bind.js
"use strict"; module.exports = function(Promise, INTERNAL, tryConvertToPromise, debug) { var calledBind = false; var rejectThis = function(_, e) { this._reject(e); }; var targetRejected = function(e, context) { context.promiseRejectionQueued = true; context.bindingPromise._then(rejectThis, rejectThis, null, this, e); }; var bindingResolved = function(thisArg, context) { if (((this._bitField & 50397184) === 0)) { this._resolveCallback(context.target); } }; var bindingRejected = function(e, context) { if (!context.promiseRejectionQueued) this._reject(e); }; Promise.prototype.bind = function (thisArg) { if (!calledBind) { calledBind = true; Promise.prototype._propagateFrom = debug.propagateFromFunction(); Promise.prototype._boundValue = debug.boundValueFunction(); } var maybePromise = tryConvertToPromise(thisArg); var ret = new Promise(INTERNAL); ret._propagateFrom(this, 1); var target = this._target(); ret._setBoundTo(maybePromise); if (maybePromise instanceof Promise) { var context = { promiseRejectionQueued: false, promise: ret, target: target, bindingPromise: maybePromise }; target._then(INTERNAL, targetRejected, undefined, ret, context); maybePromise._then( bindingResolved, bindingRejected, undefined, ret, context); ret._setOnCancel(maybePromise); } else { ret._resolveCallback(target); } return ret; }; Promise.prototype._setBoundTo = function (obj) { if (obj !== undefined) { this._bitField = this._bitField | 2097152; this._boundTo = obj; } else { this._bitField = this._bitField & (~2097152); } }; Promise.prototype._isBound = function () { return (this._bitField & 2097152) === 2097152; }; Promise.bind = function (thisArg, value) { return Promise.resolve(value).bind(thisArg); }; };
Upload File
Create Folder