Skip to content

Commit 699561c

Browse files
committed
Rename closure to executor
1 parent 4a09e26 commit 699561c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ParsePromise.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ var isPromisesAPlusCompliant = true;
2626
* @constructor
2727
*/
2828
export default class ParsePromise {
29-
constructor(closure) {
29+
constructor(executor) {
3030
this._resolved = false;
3131
this._rejected = false;
3232
this._resolvedCallbacks = [];
3333
this._rejectedCallbacks = [];
3434

35-
if (typeof closure === 'function') {
36-
closure(this.resolve.bind(this), this.reject.bind(this));
35+
if (typeof executor === 'function') {
36+
executor(this.resolve.bind(this), this.reject.bind(this));
3737
}
3838
}
3939

0 commit comments

Comments
 (0)