Index: src/js/promise.js |
diff --git a/src/js/promise.js b/src/js/promise.js |
index 16b7161b7886c4732652da3990148cb962c31c00..ce62cf2379ca4c176b6719b26068439e9ad67c21 100644 |
--- a/src/js/promise.js |
+++ b/src/js/promise.js |
@@ -489,13 +489,13 @@ function PromiseResolve(x) { |
// Avoid creating resolving functions. |
if (this === GlobalPromise) { |
var promise = PromiseCreate(); |
- var resolveResult = ResolvePromise(promise, x); |
+ ResolvePromise(promise, x); |
return promise; |
} |
// debugEvent is not so meaningful here as it will be resolved |
var promiseCapability = NewPromiseCapability(this, true); |
- var resolveResult = %_Call(promiseCapability.resolve, UNDEFINED, x); |
+ %_Call(promiseCapability.resolve, UNDEFINED, x); |
return promiseCapability.promise; |
} |