Index: src/promise.js |
diff --git a/src/promise.js b/src/promise.js |
index 23e51259a36c43849002990ea2b3ebbb3c5c0105..9937f0ced70f32d9bb6fc162be8194e9712aa996 100644 |
--- a/src/promise.js |
+++ b/src/promise.js |
@@ -306,9 +306,8 @@ function PromiseOne(values) { |
//------------------------------------------------------------------- |
function SetUpPromise() { |
- %CheckIsBootstrapping() |
- var global_receiver = %GlobalReceiver(global); |
- global_receiver.Promise = $Promise; |
+ %CheckIsBootstrapping(); |
+ %SetProperty(global, 'Promise', $Promise, DONT_ENUM); |
InstallFunctions($Promise, DONT_ENUM, [ |
"defer", PromiseDeferred, |
"accept", PromiseResolved, |