I've tried both variants and neither of them works.
const browser = await puppeteer.launch({
args: [
'--max_old_space_size=1024',
],
headless: true,
});
and
const browser = await puppeteer.launch({
args: [
'--js-flags="--max_old_space_size=1024"',
],
headless: true,
});
What am I doing wrong?