Skip to content

Commit 2471b9d

Browse files
author
John Haley
committed
Fix context errors
1 parent ffdc9cd commit 2471b9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/core.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ function Promise(fn) {
3232
}
3333

3434
this.value = function () {
35-
if (!this.isFulfilled()) {
35+
if (!self.isFulfilled()) {
3636
throw new Error('Cannot get a value of an unfulfilled promise.')
3737
}
3838

3939
return value
4040
}
4141

4242
this.reason = function () {
43-
if (!this.isRejected()) {
43+
if (!self.isRejected()) {
4444
throw new Error('Cannot get a rejection reason of a non-rejected promise.')
4545
}
4646

0 commit comments

Comments
 (0)