title: How to find out what's causing my Javascript to crash the browser tab?
body: <p>I'm making a <a href="http://indigofenix.com/boundworlds" rel="nofollow noreferrer">rather extensive game</a> using Javascript.  It is a kind of online game maker that allows players to upload media files and use them to create worlds.  Unfortunately, it is rather prone to crashing the browser tab at unpredictable moments.  So far, I have found no pattern to this - sometimes it happens within a few minutes, other times it can run for hours without a problem.</p>
  
  <p>I have tried enabling logging in Chrome, but the crashes don't seem to generate an error report in the chrome_debug file.</p>
  
  <p>I thought it might be that the program was using too much memory (given the game's open-ended nature, some worlds can involve downloading rather large data files - though this seems unrelated to when the crash actually happens - while large worlds do seem to be more crash-prone, they do not always crash when the world's data is loaded).</p>
  
  <p>I tried using Electron to turn it into an executable app, but the app still crashes.  That shouldn't happen if it's a memory issue, right?</p>
  
  <p>Is there any way of finding out what is causing the code to crash?</p>