diff options
author | Jackson Tian <shyvo1987@gmail.com> | 2017-04-10 23:24:47 +0800 |
---|---|---|
committer | Benjamin Gruenbaum <benji@tipranks.com> | 2017-04-16 03:08:11 +0300 |
commit | 4a782e12a80bfd8dc2b96b7bf261469971c81682 (patch) | |
tree | 5d45bb1418a51acd4d0c0156b8e8b338e9f59009 /test/parallel/test-child-process-send-utf8.js | |
parent | ddcd93aaeb1485b2b7ddd35f8e96dba1cc372cea (diff) | |
download | android-node-v8-4a782e12a80bfd8dc2b96b7bf261469971c81682.tar.gz android-node-v8-4a782e12a80bfd8dc2b96b7bf261469971c81682.tar.bz2 android-node-v8-4a782e12a80bfd8dc2b96b7bf261469971c81682.zip |
test: replace [].join() with ''.repeat()
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>
Diffstat (limited to 'test/parallel/test-child-process-send-utf8.js')
-rw-r--r-- | test/parallel/test-child-process-send-utf8.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-child-process-send-utf8.js b/test/parallel/test-child-process-send-utf8.js index f49712a677..2609dd0d6d 100644 --- a/test/parallel/test-child-process-send-utf8.js +++ b/test/parallel/test-child-process-send-utf8.js @@ -24,7 +24,7 @@ const common = require('../common'); const assert = require('assert'); const fork = require('child_process').fork; -const expected = Array(1e5).join('ßßßß'); +const expected = 'ßßßß'.repeat(1e5 - 1); if (process.argv[2] === 'child') { process.send(expected); } else { |