mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
9c714d8232
PR-URL: https://github.com/nodejs/node/pull/50352 Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
18 lines
277 B
JavaScript
18 lines
277 B
JavaScript
'use strict';
|
|
|
|
process.stdout.write(`${process.pid}`);
|
|
|
|
const testRegex = /test-regex/gi;
|
|
|
|
function functionOne() {
|
|
for (let i = 0; i < 100; i++) {
|
|
const match = testRegex.exec(Math.random().toString());
|
|
}
|
|
}
|
|
|
|
function functionTwo() {
|
|
functionOne();
|
|
}
|
|
|
|
functionTwo();
|