mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
test: reduce string concatenations
PR-URL: https://github.com/nodejs/node/pull/12735 Refs: https://github.com/nodejs/node/pull/12455 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
This commit is contained in:
1 parent
6bcf65d4a7
commit
8b76c3e60c
350 files changed
+1001
-1075
No files matched your search
@@ -32,8 +32,8 @@ const https = require('https');
|
||||
|
||||
const fs = require('fs');
|
||||
|
||||
const key = fs.readFileSync(common.fixturesDir + '/keys/agent1-key.pem');
|
||||
const cert = fs.readFileSync(common.fixturesDir + '/keys/agent1-cert.pem');
|
||||
const key = fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`);
|
||||
const cert = fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`);
|
||||
|
||||
// number of bytes discovered empirically to trigger the bug
|
||||
const data = Buffer.alloc(1024 * 32 + 1);
|
||||
|
||||
Reference in new issue
Block a user