ungap/global-this

`TypeError: undefined is not an object (evaluating this.globalThis = this)` on Safari 11 and below

Closed this issue · 2 comments

The error description is fully in the title.
Related to this code https://github.com/ungap/global-this/blob/master/index.js#L11

if you literally copy and paste that file in console, you'll have no errors, and globalThis available, so I guess you have an issue with your tools?

@WebReflection You are right, thanks
The problem is that I'm using https://github.com/uNmAnNeR/imaskjs package, which uses global-this package, and in that scenario, it fails to work.

Anyway, I've used your superuseful ungap/degap and replaced imasks usage of global-this with core-js. Thanks for that degap