If the file failed to compile the server wouldn’t execute it because a file wouldn’t be created. A compile error stops the process, It doesn’t result in a corrupted output, since that would be really stupid.
Comment on Anon is a math prodigy
joyjoy@lemm.ee 2 months agoFile fails to compile, web server tries to run the file, error.
echodot@feddit.uk 2 months ago
joyjoy@lemm.ee 2 months ago
You must have never used the eclipse Java compiler.
lime@feddit.nu 2 months ago
if your server runs user-submitted code server side, that’s a paddlin
Black616Angel@discuss.tchncs.de 2 months ago
It never said user code.
This could as well be an intro to php and the server may be set to not show errors and instead just fail.
The lecturer then writes some code, forgets a semicolon and gets a 500.
sugar_in_your_tea@sh.itjust.works 2 months ago
Nodejs exists. Here’s a JS snippet that would throw an exception: