Skip to main content

Posts

Showing posts with the label #javascript

Javascript and infinite recursion

 What happens if there is a stack overflow? But we all fondly ask what (disaster) would have happened if there was no stackoverflow ?   But I am talking about actual stack overflow happening. When a recursive function goes into an infinite recursion? We all have seen such code and been wiser after them. But I wasn't ready for this disaster when there was a infinite recursion in a javascript. Was there a stack overflow? Was there a memory error? I really could not tell because.... Because the browser stopped working, the mouse stopped working. I was unable to start a terminal to kill the browser. I was not even able to switch terminals using ctrl alt f3 f4 etc. After switching off the computer - using the power button for nth time, I suspected malfunction by HTML editor. Checked its desktop file. Checked the type of executable - is it some kind of rogue script? No it wasn't. It was the normal ELF file. I checked the config directories. I even checked system logs. Could not find...