mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
Replace [].join calls with the more modern .repeat PR-URL: https://github.com/nodejs/node/pull/12305 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
15 lines
398 B
JavaScript
15 lines
398 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
const assert = require('assert');
|
|
const fork = require('child_process').fork;
|
|
|
|
const expected = 'ßßßß'.repeat(1e5 - 1);
|
|
if (process.argv[2] === 'child') {
|
|
process.send(expected);
|
|
} else {
|
|
const child = fork(process.argv[1], ['child']);
|
|
child.on('message', common.mustCall((actual) => {
|
|
assert.strictEqual(actual, expected);
|
|
}));
|
|
}
|