Index: src/promise.js |
diff --git a/src/promise.js b/src/promise.js |
index 9e88aa56ce042a5e90c49adf65d7e832fe30b10b..37c10ec08eb298d5543738531168fe0315ca7854 100644 |
--- a/src/promise.js |
+++ b/src/promise.js |
@@ -146,7 +146,7 @@ var lastMicrotaskId = 0; |
// For bootstrapper. |
IsPromise = function IsPromise(x) { |
- return IS_SPEC_OBJECT(x) && HAS_PRIVATE(x, promiseStatus); |
+ return IS_SPEC_OBJECT(x) && HAS_DEFINED_PRIVATE(x, promiseStatus); |
} |
PromiseCreate = function PromiseCreate() { |
@@ -162,7 +162,7 @@ var lastMicrotaskId = 0; |
// Check promiseDebug property to avoid duplicate event. |
if (DEBUG_IS_ACTIVE && |
GET_PRIVATE(promise, promiseStatus) == 0 && |
- !HAS_PRIVATE(promise, promiseDebug)) { |
+ !HAS_DEFINED_PRIVATE(promise, promiseDebug)) { |
%DebugPromiseRejectEvent(promise, r); |
} |
PromiseDone(promise, -1, r, promiseOnReject) |