Description of changes:
This PR updates the browser polyfill check to check for any browser-based global context through self instead of window. It should enable aws-crt-nodejs to work in web and service worker contexts.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Description of changes: This PR updates the browser polyfill check to check for any browser-based global context through
self
instead of window. It should enableaws-crt-nodejs
to work in web and service worker contexts.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.