Skip to content
Closed
Show file tree
Hide file tree
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
Next Next commit
fixup! doc: fix default maxBuffer size
  • Loading branch information
sam-github committed Apr 3, 2019
commit f605ba946034e191b828de64534eb4d3b72ea1ab
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ function runChecks(err, stdio, streamName, expected) {

// default value
{
// eslint-disable-next-line max-len
const cmd = `${process.execPath} -e "console.log('a'.repeat(200 * 1024 - 1))"`;
const cmd =
`${process.execPath} -e "console.log('a'.repeat(200 * 1024 - 1))"`;

cp.exec(cmd, common.mustCall((err, stdout, stderr) => {
assert.ifError(err);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function checkFactory(streamName) {
{
execFile(
process.execPath,
['-e', "console.log('a'.repeat(200 * 1024))"],
['-e', `console.log('a'.repeat(200 * 1024))`],
checkFactory('stdout')
);
}
Expand All @@ -24,7 +24,7 @@ function checkFactory(streamName) {
{
execFile(
process.execPath,
['-e', "console.log('a'.repeat(200 * 1024 - 1))"],
['-e', `console.log('a'.repeat(200 * 1024 - 1))`],
common.mustCall((err, stdout, stderr) => {
assert.ifError(err);
assert.strictEqual(stdout.trim(), 'a'.repeat(200 * 1024 - 1));
Expand All @@ -38,7 +38,7 @@ function checkFactory(streamName) {

execFile(
process.execPath,
['-e', "console.log('hello world');"],
['-e', `console.log('hello world');`],
options,
common.mustCall((err, stdout, stderr) => {
assert.ifError(err);
Expand All @@ -65,7 +65,7 @@ const unicode = '中文测试'; // length = 4, byte length = 12
{
execFile(
process.execPath,
['-e', `console.error('${unicode}');"`],
['-e', `console.error('${unicode}');`],
{ maxBuffer: 10 },
checkFactory('stderr')
);
Expand Down