summaryrefslogtreecommitdiff
path: root/test/parallel/test-v8-collect-gc-profile.js
blob: 70a8a0d842ef9e78ce3a0293eb9391b9882c83dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Flags: --expose-gc
'use strict';
require('../common');
const { testGCProfiler } = require('../common/v8');

testGCProfiler();

for (let i = 0; i < 100; i++) {
  new Array(100);
}

global?.gc();