__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
"use strict";
module.exports = function(Promise) {
function PromiseInspection(promise) {
if (promise !== undefined) {
promise = promise._target();
this._bitField = promise._bitField;
this._settledValueField = promise._isFateSealed()
? promise._settledValue() : undefined;
}
else {
this._bitField = 0;
this._settledValueField = undefined;
}
}
PromiseInspection.prototype._settledValue = function() {
return this._settledValueField;
};
var value = PromiseInspection.prototype.value = function () {
if (!this.isFulfilled()) {
throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\u000a\u000a See http://goo.gl/MqrFmX\u000a");
}
return this._settledValue();
};
var reason = PromiseInspection.prototype.error =
PromiseInspection.prototype.reason = function () {
if (!this.isRejected()) {
throw new TypeError("cannot get rejection reason of a non-rejected promise\u000a\u000a See http://goo.gl/MqrFmX\u000a");
}
return this._settledValue();
};
var isFulfilled = PromiseInspection.prototype.isFulfilled = function() {
return (this._bitField & 33554432) !== 0;
};
var isRejected = PromiseInspection.prototype.isRejected = function () {
return (this._bitField & 16777216) !== 0;
};
var isPending = PromiseInspection.prototype.isPending = function () {
return (this._bitField & 50397184) === 0;
};
var isResolved = PromiseInspection.prototype.isResolved = function () {
return (this._bitField & 50331648) !== 0;
};
PromiseInspection.prototype.isCancelled = function() {
return (this._bitField & 8454144) !== 0;
};
Promise.prototype.__isCancelled = function() {
return (this._bitField & 65536) === 65536;
};
Promise.prototype._isCancelled = function() {
return this._target().__isCancelled();
};
Promise.prototype.isCancelled = function() {
return (this._target()._bitField & 8454144) !== 0;
};
Promise.prototype.isPending = function() {
return isPending.call(this._target());
};
Promise.prototype.isRejected = function() {
return isRejected.call(this._target());
};
Promise.prototype.isFulfilled = function() {
return isFulfilled.call(this._target());
};
Promise.prototype.isResolved = function() {
return isResolved.call(this._target());
};
Promise.prototype.value = function() {
return value.call(this._target());
};
Promise.prototype.reason = function() {
var target = this._target();
target._unsetRejectionIsUnhandled();
return reason.call(target);
};
Promise.prototype._value = function() {
return this._settledValue();
};
Promise.prototype._reason = function() {
this._unsetRejectionIsUnhandled();
return this._settledValue();
};
Promise.PromiseInspection = PromiseInspection;
};
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| any.js | File | 421 B | 0644 |
|
| assert.js | File | 1.61 KB | 0644 |
|
| async.js | File | 4.05 KB | 0644 |
|
| bind.js | File | 1.92 KB | 0644 |
|
| bluebird.js | File | 291 B | 0644 |
|
| call_get.js | File | 4.25 KB | 0644 |
|
| cancel.js | File | 3.62 KB | 0644 |
|
| catch_filter.js | File | 1.39 KB | 0644 |
|
| context.js | File | 2.33 KB | 0644 |
|
| debuggability.js | File | 29.63 KB | 0644 |
|
| direct_resolve.js | File | 1.36 KB | 0644 |
|
| each.js | File | 789 B | 0644 |
|
| errors.js | File | 3.63 KB | 0644 |
|
| es5.js | File | 1.93 KB | 0644 |
|
| filter.js | File | 314 B | 0644 |
|
| finally.js | File | 4.5 KB | 0644 |
|
| generators.js | File | 7.58 KB | 0644 |
|
| join.js | File | 8.03 KB | 0644 |
|
| map.js | File | 5.25 KB | 0644 |
|
| method.js | File | 1.73 KB | 0644 |
|
| nodeback.js | File | 1.52 KB | 0644 |
|
| nodeify.js | File | 1.61 KB | 0644 |
|
| promise.js | File | 25.59 KB | 0644 |
|
| promise_array.js | File | 5.08 KB | 0644 |
|
| promisify.js | File | 11.9 KB | 0644 |
|
| props.js | File | 3.04 KB | 0644 |
|
| queue.js | File | 1.83 KB | 0644 |
|
| race.js | File | 1.22 KB | 0644 |
|
| reduce.js | File | 5.01 KB | 0644 |
|
| schedule.js | File | 2.1 KB | 0644 |
|
| settle.js | File | 1.23 KB | 0644 |
|
| some.js | File | 3.87 KB | 0644 |
|
| synchronous_inspection.js | File | 2.75 KB | 0644 |
|
| thenables.js | File | 2.08 KB | 0644 |
|
| timers.js | File | 2.34 KB | 0644 |
|
| using.js | File | 7.35 KB | 0644 |
|
| util.js | File | 10.28 KB | 0644 |
|