summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/js-self-profiling/function-declaration-names.https.html
blob: 9cb02cbfc0dd8c6e8c8549b52ec6179e104921dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<html>

<head>
  <script src="/resources/testharness.js"></script>
  <script src="/resources/testharnessreport.js"></script>

  <script src="resources/profile-utils.js"></script>
</head>

<body>
  <script>
    promise_test(async t => {
      function namedFunctionDeclaration(sample) {
        sample();
      };
      await ProfileUtils.testFunction(namedFunctionDeclaration, {
        name: 'namedFunctionDeclaration',
      });
    }, 'function declaration names are logged correctly');
  </script>
</body>

</html>