This PR aims to fix a problem I encountered where top level this in global scope was undefined. Most likely because my environment was running in "strict mode". A better description of the problem is in issue #131 .
I only added globalThis and did not replace this since I don't know what browser support this project has, and globalThis is not supported in IE 🙈.
This PR aims to fix a problem I encountered where top level
this
in global scope wasundefined
. Most likely because my environment was running in "strict mode". A better description of the problem is in issue #131 .I only added
globalThis
and did not replacethis
since I don't know what browser support this project has, andglobalThis
is not supported in IE 🙈.All tests passed.
Sincerely, Hedinn