Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
use Buffer.alloc instead of allocUnsafe
  • Loading branch information
mafintosh committed Oct 23, 2018
commit 6a34ccdd515ca4c053a8abf85ce39ba19b99aae6
2 changes: 1 addition & 1 deletion test/parallel/test-zlib-close-in-ondata.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const common = require('../common');
const zlib = require('zlib');

const ts = zlib.createGzip();
const buf = Buffer.allocUnsafe(1024 * 1024 * 20);
const buf = Buffer.alloc(1024 * 1024 * 20);

ts.on('data', common.mustCall(() => ts.close()));
ts.end(buf);