3 ms·
Unfortunately it also thinks every function that uses a native browser variable/object (e.g. `screen` in my case) means it will fail because I never defined `sc
by pseudosavant 9y ago
Unfortunately it also thinks every function that uses a native browser variable/object (e.g. `screen` in my case) means it will fail because I never defined `screen` in my code.
Other analysis tools like JSHint allow you to specify certain globals ($) or that you are in a browser environment with special annotations to handle this situation. I couldn't find anything in their documentation like that.
- mantoni 9y agoThe documentation has a list of supported browser features: https://javascript.studio/docs/browser-features https://javascript.studio/docs/browser-features Ideally all the browser APIs should be supported by the tool without the need to manually declare any globals.