We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0729d3a commit faeed88Copy full SHA for faeed88
src/core.js
@@ -153,14 +153,14 @@ Promise.prototype.isRejected = function () {
153
return this._state === 2;
154
}
155
Promise.prototype.value = function () {
156
- if (!self.isFulfilled()) {
+ if (!this.isFulfilled()) {
157
throw new Error('Cannot get a value of an unfulfilled promise.')
158
159
160
return this._value;
161
162
Promise.prototype.reason = function () {
163
- if (!self.isRejected()) {
+ if (!this.isRejected()) {
164
throw new Error('Cannot get a rejection reason of a non-rejected promise.')
165
166
0 commit comments