tor-browser

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

test-error-worklet.html (600B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <title>Worklet error generator</title>
      5  <!--
      6    Any copyright is dedicated to the Public Domain.
      7    http://creativecommons.org/publicdomain/zero/1.0/
      8  -->
      9 </head>
     10 <script>
     11 "use strict";
     12 const context = new AudioContext();
     13 
     14 context.audioWorklet.addModule("test-syntaxerror-worklet.js").catch(
     15  () => context.audioWorklet.addModule("test-error-worklet.mjs")
     16 ).then(() => {
     17  const workletNode = new AudioWorkletNode(context, "error");
     18  const oscillator = new OscillatorNode(context);
     19  oscillator.connect(workletNode);
     20  oscillator.start();
     21 });
     22 
     23 </script>
     24 </html>