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 4a09e26 commit 699561cCopy full SHA for 699561c
src/ParsePromise.js
@@ -26,14 +26,14 @@ var isPromisesAPlusCompliant = true;
26
* @constructor
27
*/
28
export default class ParsePromise {
29
- constructor(closure) {
+ constructor(executor) {
30
this._resolved = false;
31
this._rejected = false;
32
this._resolvedCallbacks = [];
33
this._rejectedCallbacks = [];
34
35
- if (typeof closure === 'function') {
36
- closure(this.resolve.bind(this), this.reject.bind(this));
+ if (typeof executor === 'function') {
+ executor(this.resolve.bind(this), this.reject.bind(this));
37
}
38
39
0 commit comments