Files
Kmake/test/parallel/test-v8-collect-gc-profile-exit-before-stop.js
2026-05-26 23:36:42 -07:00

18 lines
313 B
JavaScript

'use strict';
require('../common');
const { GCProfiler } = require('v8');
// Test if it makes the process crash.
{
const profiler = new GCProfiler();
profiler.start();
profiler.stop();
profiler.start();
profiler.stop();
}
{
const profiler = new GCProfiler();
profiler.start();
profiler.stop();
}