4 ms·
I was wondering how the hell does this access files, since there is a complete lack of any filesystem access in every normal browsers. TIL that in Windows .js
by Artlav 10y ago
I was wondering how the hell does this access files, since there is a complete lack of any filesystem access in every normal browsers.
TIL that in Windows .js files can be executed outside of the browser...
- tomsmeding 10y agoAnd it's a huge security threat at that.
- tuxracer 10y agoWhy? JavaScript is just a language. A browser is just one platform it happens to run. Scripts running in a browser have certain restrictions. Scripts running directly on the host OS typically have unfettered access to the whole filesystem. If they're written in Python, batch, JavaScript, Ruby, etc... shouldn't have any role in deciding how much access the script has to the filesystem. Similarly if browsers were to support running Python that code shouldn't automatically have full filesystem access just based on the language it's written in.