()
| 4 | const ALLOCATION_SIZE = 2_000_001; |
| 5 | |
| 6 | function allocation() { |
| 7 | // `allocUnsafeSlow` skips the Buffer pool, so V8 asks the allocator for |
| 8 | // exactly ALLOCATION_SIZE bytes. |
| 9 | return Buffer.allocUnsafeSlow(ALLOCATION_SIZE); |
| 10 | } |
| 11 | |
| 12 | allocation(); |