Skip to content

Commit

Permalink
fix(OpenPromise): null executer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alisahinozcelik committed Nov 28, 2020
1 parent 36b06c7 commit 449bd10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/open-promise.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class OpenPromise<T = any> extends Promise<T> {
}
});

executor.call(null, resolver, rejector);
(executor || noop).call(null, resolver, rejector);
});

resolver['context'] = this;
Expand Down

0 comments on commit 449bd10

Please sign in to comment.