Index: src/promise.js |
diff --git a/src/promise.js b/src/promise.js |
index 2a3f4fd5cfd93f1a396bc362d3bd2a42b09d25cd..db7863f8098f686cab2fc4545eab1429165797fc 100644 |
--- a/src/promise.js |
+++ b/src/promise.js |
@@ -296,7 +296,8 @@ function PromiseOne(values) { |
function SetUpPromise() { |
%CheckIsBootstrapping() |
- global.Promise = $Promise; |
+ var global_receiver = %GlobalReceiver(global); |
+ global_receiver.Promise = $Promise; |
InstallFunctions($Promise, DONT_ENUM, [ |
"defer", PromiseDeferred, |
"resolve", PromiseResolved, |