mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
733ef4e0ff
PR-URL: https://github.com/nodejs/node/pull/46255 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
13 lines
197 B
JavaScript
13 lines
197 B
JavaScript
// 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();
|