API Refinements:
- The default global scope when creating a new realm has no extra capabilities, it is confusing, we can remove it.
- The realm object is the real power object, and users can decide to share it or not via endowments.
- In a realm, you can create as many global scopes as you want via
realmObj.createNewGlobalScope()
. - No more proxy-like API at the realm level, if you want to proxy a global, that should be used when creating a new global scope.
The API proposal: