0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-11 23:00:52 +00:00
termux-packages/packages/nodejs-lts/test-parallel-test-blob-buffer-too-large.js.patch
2024-02-21 19:02:31 +05:30

18 lines
645 B
Diff

--- ./test/parallel/test-blob-buffer-too-large.js.orig 2024-02-18 23:10:43.424477597 +0530
+++ ./test/parallel/test-blob-buffer-too-large.js 2024-02-18 23:10:27.273767652 +0530
@@ -4,10 +4,14 @@
const common = require('../common');
const assert = require('assert');
const { Blob, kMaxLength } = require('buffer');
+const { platform } = require('os');
if (common.isFreeBSD)
common.skip('Oversized buffer make the FreeBSD CI runner crash');
+if (platform() === 'android')
+ common.skip('Android will kill heavy memory using processes sometimes crashing Termux');
+
try {
new Blob([new Uint8Array(kMaxLength), [1]]);
} catch (e) {