tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

Worker-replace-event-handler.any.js (294B)


      1 // META: global=worker
      2 // This is a regression test for a crash bug in Chrome: http://crbug.com/239669
      3 function update() {
      4  onmessage = undefined;
      5 }
      6 
      7 test(() => {
      8  for (var i = 0; i < 8; ++i) {
      9    update();
     10  }
     11 }, "Tests that repeatedly setting 'onmessage' within a worker doesn't crash.");