11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_ciconst path = require('path'); 31cb0ef41Sopenharmony_ciconst { Worker } = require('worker_threads'); 41cb0ef41Sopenharmony_ciconst max_snapshots = parseInt(process.env.TEST_SNAPSHOTS) || 1; 51cb0ef41Sopenharmony_cinew Worker(path.join(__dirname, 'grow-and-set-near-heap-limit.js'), { 61cb0ef41Sopenharmony_ci env: { 71cb0ef41Sopenharmony_ci ...process.env, 81cb0ef41Sopenharmony_ci limit: max_snapshots, 91cb0ef41Sopenharmony_ci }, 101cb0ef41Sopenharmony_ci resourceLimits: { 111cb0ef41Sopenharmony_ci maxOldGenerationSizeMb: 121cb0ef41Sopenharmony_ci parseInt(process.env.TEST_OLD_SPACE_SIZE) || 20 131cb0ef41Sopenharmony_ci } 141cb0ef41Sopenharmony_ci}); 151cb0ef41Sopenharmony_ci 16