-
Notifications
You must be signed in to change notification settings - Fork 311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"global is not defined" in setImmediate.js on v0.8.16 #290
Comments
I have the same problem |
global got renamed to globalThis in the tc39 proposal Edit: interface Object {
global: object;
globalThis: object;
}
function polyfillGlobalThis ():object {
if (typeof globalThis !== 'undefined') return globalThis
Object.defineProperty(Object.prototype, 'globalThis', {
get: function () {
delete Object.prototype.globalThis
this.globalThis = this
},
configurable: true
})
return globalThis
}
polyfillGlobalThis();
function polyfillGlobal ():object {
if (typeof global !== 'undefined') return global
Object.defineProperty(Object.prototype, 'global', {
get: function () {
delete Object.prototype.global
this.global = this
},
configurable: true
})
return global
}
polyfillGlobal(); |
probably to fix this issue need to change this line:
to if (typeof global !== 'undefined' && global.ErrorUtils) { PR: #355 |
Any news? |
Me too! |
Still an issue, any update? |
Same issue |
This worked for me. <script> const global = globalThis; </script> |
This worked but can any one explain what this is doing? |
It does not works in angular + electronJS + contextIsolation = true |
No description provided.
The text was updated successfully, but these errors were encountered: