forked from pool/nodejs-electron
- New upstream release 29.3.3 * Fixed an issue where fs.createWriteStream could write out of order. * Avoid some crashes when launching new process if Electron package is upgraded while apps are running * Fix use after free in V8 (CVE-2024-3914 bsc#1222958) * Fix use after free in Angle (CVE-2024-4558 bsc#1224045) * a11y: avoid clearing/resetting focus on an already focused element. - Build all translations for devtools, not just Chinese. * more-locales.patch * devtools-frontend-compress_files-oom.patch OBS-URL: https://build.opensuse.org/request/show/1172969 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=145
15 lines
625 B
Diff
15 lines
625 B
Diff
Avoid OOM on 32bit by iterating over files sequentially instead of stuffing them into async
|
|
|
|
--- src/third_party/devtools-frontend/src/scripts/build/compress_files.js.orig
|
|
+++ src/third_party/devtools-frontend/src/scripts/build/compress_files.js
|
|
@@ -75,7 +75,8 @@ async function main(argv) {
|
|
const fileList = argv[fileListPosition + 1];
|
|
const fileListContents = await readTextFile(fileList);
|
|
const files = fileListContents.split(' ');
|
|
- await Promise.all(files.map(filename => filename.trim()).map(compressFile));
|
|
+ for (i in files)
|
|
+ await compressFile(files[i].trim())
|
|
}
|
|
|
|
main(process.argv).catch(err => {
|