GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — node/test/parallel/test-blob-buffer-too-large.js at main · styfle/node Expand file tree/ Copy pathtest-blob-buffer-too-large.jsMore file actions 24 lines (21 loc) · 600 Bytes / Copy pathtest-blob-buffer-too-large.jsFile metadata and controls24 lines (21 loc) · 600 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 // Flags: --no-warnings 'use strict'; const common = require('../common'); const assert = require('assert'); const { Blob } = require('buffer'); if (common.isFreeBSD) common.skip('Oversized buffer make the FreeBSD CI runner crash'); try { new Blob([new Uint8Array(0xffffffff), [1]]); } catch (e) { if ( e.message === 'Array buffer allocation failed' || e.message === 'Invalid typed array length: 4294967295' ) { common.skip( 'Insufficient memory on this platform for oversized buffer test.' ); } else { assert.strictEqual(e.code, 'ERR_BUFFER_TOO_LARGE'); } } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |