Skip to content

Commit 791776a

Browse files
timursevimlitshemsedinov
authored andcommitted
Added default type for this.fn
1 parent e96facd commit 791776a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

JavaScript/9-thenable.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const fs = require('node:fs');
55
class Thenable {
66
constructor() {
77
this.next = null;
8+
this.fn = null;
89
}
910

1011
then(fn) {

0 commit comments

Comments
 (0)