test: reduce string concatenations

Backport-PR-URL: https://github.com/nodejs/node/pull/13835
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:
Vse Mozhet Byt authored and Myles Borins committed 2017-07-11 17:43:49 +01:00
1 parent c902265b90
commit 5b74e635e5
334 files changed
+957 -1026

No files matched your search

+1 -1
View File
@@ -151,7 +151,7 @@ function test(encoding, input, expected, singleSequence) {
function unicodeEscape(str) {
let r = '';
for (let i = 0; i < str.length; i++) {
r += '\\u' + str.charCodeAt(i).toString(16);
r += `\\u${str.charCodeAt(i).toString(16)}`;
}
return r;
}