tor-browser

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

function-declaration-names.https.html (535B)


      1 <!DOCTYPE html>
      2 <html>
      3 
      4 <head>
      5  <script src="/resources/testharness.js"></script>
      6  <script src="/resources/testharnessreport.js"></script>
      7 
      8  <script src="resources/profile-utils.js"></script>
      9 </head>
     10 
     11 <body>
     12  <script>
     13    promise_test(async t => {
     14      function namedFunctionDeclaration(sample) {
     15        sample();
     16      };
     17      await ProfileUtils.testFunction(namedFunctionDeclaration, {
     18        name: 'namedFunctionDeclaration',
     19      });
     20    }, 'function declaration names are logged correctly');
     21  </script>
     22 </body>
     23 
     24 </html>