• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2
3require('../common');
4
5// Verifies that setting up two observers to listen
6// to gc performance does not crash.
7
8const {
9  PerformanceObserver,
10} = require('perf_hooks');
11
12// We don't actually care if the callback is ever invoked in this test
13const obs = new PerformanceObserver(() => {});
14const obs2 = new PerformanceObserver(() => {});
15
16obs.observe({ type: 'gc' });
17obs2.observe({ type: 'gc' });
18