This isn't exposed because we have convenient methods in JSCContext to get and set properties on the global object. However, getting the global object could be useful in some cases, for example to give it a well known name like 'window' in browsers and GJS.
Created attachment 344687 [details] Patch
Comment on attachment 344687 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=344687&action=review > Source/JavaScriptCore/ChangeLog:10 > + This wasn't exposed because we have convenient methods in JSCContext to get and set properties on the global > + object. However, getting the global object could be useful in some cases, for example to give it a well known > + name like 'window' in browsers and GJS. What specifically are you planning to use it for? Surely it's not required to give it the name "window" in Epiphany?
Committed r233759: <https://trac.webkit.org/changeset/233759>
<rdar://problem/42104161>