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

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -