What happens when there is a javascript runtime error? -


i understand causes runtime errors. want understand how browser behaves afterwards.

will event handlers attached before error still work?

if script loaded async finishes after runtime error able execute?

basically, how catastrophic run-time error?

an uncatched runtime error stops current execution, may be

  • the execution of script
  • the call of event handler

suppose have runtime error while handling event, problem might have (apart not handling event) non consistent state of user variables if event handler modifies of them. other event handlers won't impacted besides that.

so can considered non catastrophic (i guess don't have remember it's practice fix errors anyways , flooding console errors isn't thing).


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -