Compilation errors from browsers that dont support globals
See original GitHub issueHi
this piece of code:
Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined
? global.TYPED_ARRAY_SUPPORT
: typedArraySupport()
Does not work on browsers that do not support the global
the whole lib crashes
One of such is brave and lately all browsers.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Script errors in Internet Explorer - Browsers - Microsoft Learn
A script error occurs in Internet Explorer, the webpage cannot be displayed correctly and you receive an error message.
Read more >Handling common JavaScript problems - MDN Web Docs
Incorrectly using functions inside loops that iterate with a global variable (more generally "getting the scope wrong"). For example, in bad- ...
Read more >javascript - No restricted globals - Stack Overflow
Since eslint is detecting location as an element of window. it will throw the no-restricted-globals error compilation.
Read more >Top 10 JavaScript errors from 1000+ projects (and how to ...
1. Uncaught TypeError: Cannot read property · 2. TypeError: 'undefined' is not an object (evaluating · 3. TypeError: null is not an object...
Read more >Script compile error on GOTY edition, page 2 - Forum
Warning [content0]engine\showflags.ws(11): Global native function ... If you don't have this file stop here and I can't help you other than ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@sixcorners I think, most ppl do not use this lib directly. Instead they use “webpack”, which references “node-libs-browser”, which in turn references v 4.9.2 of this lib. And that one has this issue.
@feross Is that an absolute necessity to require “global”? I mean, it just causes pain for the lib users. If it can be fixed, why not fix it? Why cannot you probe it’s existence first, before accessing it?