salesforce/near-membrane

Turn getGlobalThis() into a constant

Closed this issue · 3 comments

I noticed this function will modify Object.prototype whenever it is called (if globalThis is not available). Can this be turned into a constant instead of a function so that it's done once?

The only reason for this to be there is because some env do not have globalThis yet... we can probably drop this at some point.