Skip to content

Conversation

pellenilsson
Copy link

Using this keyword for referring to the global object doesn't work in strict mode. For one thing, this makes it impossible to run babel on the library after using this wrapper.

Some good information here (using the globalThis keyword also solves the problem, but may be less compatible with very old browsers):
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis

@jsf-clabot
Copy link

jsf-clabot commented Jun 4, 2020

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants