Index: src/promise.js |
diff --git a/src/promise.js b/src/promise.js |
index 2634fde0bb8e8c9b5f0e5eb52be5dd7fde566125..0fd4b89c5173821f972a37d18f78ab789fe1159f 100644 |
--- a/src/promise.js |
+++ b/src/promise.js |
@@ -189,11 +189,11 @@ function PromiseDeferred() { |
reject: function(r) { PromiseReject(promise, r) } |
}; |
} else { |
- var result = {}; |
+ var result = {promise: UNDEFINED, reject: UNDEFINED, resolve: UNDEFINED}; |
result.promise = new this(function(resolve, reject) { |
result.resolve = resolve; |
result.reject = reject; |
- }) |
+ }); |
return result; |
} |
} |