node/test/fixtures/v8-coverage/take-coverage.js

11 lines
142 B
JavaScript

'use strict';
const v8 = require('v8');
setTimeout(() => {
v8.takeCoverage();
}, 1000);
setTimeout(() => {
v8.takeCoverage();
}, 2000);