summaryrefslogtreecommitdiffstats
path: root/devtools/server/tests/browser/doc_allocations.html
blob: a5c9ea6d41d1c5e6e810c4d85029210abd7ab3ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE HTML>
<html>
<head>
  <meta charset="utf-8">
</head>
<body>
<script>
"use strict";

window.allocs = [];
window.onload = function() {
  function allocator() {
    for (let i = 0; i < 1000; i++) {
      window.allocs.push({});
    }
  }

  window.setInterval(allocator, 1);
};
</script>
</pre>
</body>
</html>