Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Editorial: Tweak the return of
SetDefaultGlobalBindings
(tc39#3139)
In the status quo, the value returned by SetDefaultGlobalBindings is always just the [[GlobalObject]] of the Realm Record passed in. At the only invocation of SetDefaultGlobalBindings (in InitializeHostDefinedRealm), this is `_realm_.[[GlobalObject]]`, which is just `_global_`. So use `_global_` instead of `_globalObj_` (the alias for the value returned by SetDefaultGlobalBindings), and tweak SetDefaultGlobalBindings to return ~unused~.
- Loading branch information