Index: src/js/promise.js |
diff --git a/src/js/promise.js b/src/js/promise.js |
index 9bf378025f48504f8e25e65923e5344846138391..eb63c280a181649e52877550c4e03bc43098ab67 100644 |
--- a/src/js/promise.js |
+++ b/src/js/promise.js |
@@ -126,7 +126,7 @@ function NewPromiseCapability(C, debugEvent) { |
// Promise.reject ( x ) |
function PromiseReject(r) { |
if (!IS_RECEIVER(this)) { |
- throw %make_type_error(kCalledOnNonObject, PromiseResolve); |
+ throw %make_type_error(kCalledOnNonObject, PromiseReject); |
} |
if (this === GlobalPromise) { |
// Optimized case, avoid extra closure. |