Index: src/js/promise.js |
diff --git a/src/js/promise.js b/src/js/promise.js |
index 582a1e8efa7608725977241402bf1438e352075d..de9597942c010f52d6dd996fc5faac2000b628ec 100644 |
--- a/src/js/promise.js |
+++ b/src/js/promise.js |
@@ -117,7 +117,7 @@ function PromiseDone(promise, status, value, promiseQueue) { |
} |
function PromiseCoerce(constructor, x) { |
- if (!IsPromise(x) && IS_SPEC_OBJECT(x)) { |
+ if (!IsPromise(x) && IS_RECEIVER(x)) { |
var then; |
try { |
then = x.then; |
@@ -185,7 +185,7 @@ function PromiseNopResolver() {} |
// For bootstrapper. |
function IsPromise(x) { |
- return IS_SPEC_OBJECT(x) && HAS_DEFINED_PRIVATE(x, promiseStatusSymbol); |
+ return IS_RECEIVER(x) && HAS_DEFINED_PRIVATE(x, promiseStatusSymbol); |
} |
function PromiseCreate() { |
@@ -194,7 +194,7 @@ function PromiseCreate() { |
function PromiseResolve(promise, x) { |
if (GET_PRIVATE(promise, promiseStatusSymbol) === 0) { |
- if (IS_SPEC_OBJECT(x)) { |
+ if (IS_RECEIVER(x)) { |
// 25.4.1.3.2 steps 8-12 |
try { |
var then = x.then; |