Index: src/promise.js |
diff --git a/src/promise.js b/src/promise.js |
index 390c19e2aca6b4c0e25efd0eccefc6f7a802840f..23e51259a36c43849002990ea2b3ebbb3c5c0105 100644 |
--- a/src/promise.js |
+++ b/src/promise.js |
@@ -42,11 +42,11 @@ var $Promise = Promise; |
// Core functionality. |
// Status values: 0 = pending, +1 = resolved, -1 = rejected |
-var promiseStatus = NEW_PRIVATE("Promise#status"); |
-var promiseValue = NEW_PRIVATE("Promise#value"); |
-var promiseOnResolve = NEW_PRIVATE("Promise#onResolve"); |
-var promiseOnReject = NEW_PRIVATE("Promise#onReject"); |
-var promiseRaw = NEW_PRIVATE("Promise#raw"); |
+var promiseStatus = GLOBAL_PRIVATE("Promise#status"); |
+var promiseValue = GLOBAL_PRIVATE("Promise#value"); |
+var promiseOnResolve = GLOBAL_PRIVATE("Promise#onResolve"); |
+var promiseOnReject = GLOBAL_PRIVATE("Promise#onReject"); |
+var promiseRaw = GLOBAL_PRIVATE("Promise#raw"); |
function IsPromise(x) { |
return IS_SPEC_OBJECT(x) && %HasLocalProperty(x, promiseStatus); |