summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/js-self-profiling/function-anonymous-names.https.html
blob: fd7fbecc506d739cbb7144727c1e91215b10b4e6 (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 => {
      const f = function (sample) {
        sample();
      };
      await ProfileUtils.testFunction(f, {
        name: '',
      });
    }, 'anonymous function expression names are logged correctly');
  </script>
</body>

</html>