Index: src/js/promise.js |
diff --git a/src/js/promise.js b/src/js/promise.js |
index 6fc8728562c03f4e5def5bc4d3dcc72088b90b75..c6c63bbe6abe6680626e25acf846214221198159 100644 |
--- a/src/js/promise.js |
+++ b/src/js/promise.js |
@@ -317,7 +317,7 @@ function PromiseCatch(onReject) { |
function PromiseCast(x) { |
if (!IS_RECEIVER(this)) { |
- throw MakeTypeError(kCalledOnNonObject, "Promise.resolve"); |
+ throw MakeTypeError(kCalledOnNonObject, PromiseCast); |
} |
if (IsPromise(x) && x.constructor === this) return x; |